Support » Themes and Templates » How do I exclude sidebar from CATEGORY pages?

How do I exclude sidebar from CATEGORY pages?

  • I tried choosing the No sidebar as a main feature but then I can’t enable sidebars on POSTS, only Pages… Now, I have created Posts and added to a category. But there are the sidebar images interfering with the look of the overall design of the Pinboard magazine style category page… Is there any CODE I can insert in custom css or any other solution? (I don;t want to post URL as it’s a client working website..)but use your imagination..

Viewing 4 replies - 1 through 4 (of 4 total)
  • paul.a.cunn


    I believe what you want is to edit the pages that WP creates when a category is clicked. This is may be more complicated then it sounds but here is a link on how to do what you want.


    I know it kind of stinks but it is what it is.

    where you want to exclude add this condition

    <?php if(!is_single())
    // here your code that are not showing

    note : this is for single.php page.

    I’m not an expert but maybe you can use the “dynamic widgets” plugin?

    Thanks for all the help! I have decided to use the built in styling and now have no sidebars. I don’t need sidebars on that particular site. Have placed extra links on top of each page to compensate for losing the sidebar links. Not a problem. I think Pinboard is very delicate in it’s coding, the slightest mistake can throw the whole site into chaos, BUT 99% of time it works ok in google chrome.. the problems are usually with Internet Explorer.. so Pinboard is still one of my favorite themes.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How do I exclude sidebar from CATEGORY pages?’ is closed to new replies.