How to Remove Sidebar from Category Pages in WordPress?

Option-1:

check if the “category.php” file exists in the template.

There, for sidebar is usually a call to function named,

<?php get_sidebar(); ?>

# Comment this function to 
<?php /* get_sidebar(); */ ?>

Now, save & Reload your page. Sidebar may be removed now. 

Option-2:

If Your theme do not contain “category.php” file in the template.

Copy your theme‚Äôs “archive.php” to your theme folder and rename it “category.php

Now follow the “option-1” for respective changes.

Leave a Reply

Your email address will not be published. Required fields are marked *