WordPress.org

Ready to get started?Download WordPress

Forums

Hiding sidebar for some categories and its sub-categories (1 post)

  1. nims
    Member
    Posted 2 years ago #

    Hi ... I am trying to find a solution to hide sidebar for certain category and its sub-categories. I have created a file category-alfa.php and did not put the code for sidebar. Now this hides the sidebar in that category ... but the sidebar is still visible in the sub-categories. Do I need to create a seperate file for each sub-category ? Is there a better solution without having to create seperate files.

Topic Closed

This topic has been closed to new replies.

About this Topic