I’m working on a WordPress site that uses the Reason theme from Themeforest. I have been
able to work out all issues except for two, one of which is the basis for this question.
The theme comes with a sidebar, but I want to disable it unless the user is on one of two
category pages OR on a post in one of those two categories.
Here is the code from page.php that calls the sidebar:
<div class="four columns sidebar">
<?php dynamic_sidebar( 'default-widget-area' ); ?>
</div>
Any help would be much appreciated…
Thanks!
Cynthia
You have some functions that can help you with that:
From WordPres Codex,