Hide Sidebar on a Category
-
Hi,
I’ve read all about custom templates and conditional tags and I was able to hide the sidebar on specific pages by using a custom page template that I simply removed the get_sidebar.
Now, I am trying to use the conditional tag with the ! to exclude, as follows:
<?php
if ( !is_category(‘how-to-sail-tips-and-tricks’ ) ) {
get_sidebar();
}
?>The sidebar keeps showing up on my category page.
Any clues?
Thanks,
Kory
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Hide Sidebar on a Category’ is closed to new replies.