Hide sidebar if empty
-
Hello,
I’m using the following code to generate my sidebar:
<?php if ( is_active_sidebar( 'subjects-sidebar' ) ) { ?> <div class="col-xs-12 col-sm-2 col-md-2 col-lg-2 subjects-groups-sidebar"> <?php dynamic_sidebar('subjects-sidebar'); ?> </div> <?php } ?>
Apparently this doesn’t work. It works on other pages, but it simply refuses to work on my single pages.
What can I do?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Hide sidebar if empty’ is closed to new replies.