Conditional tag stopped working
-
I’m changing the sidebar width on the home page by checking for the home page and giving the sidebar an additional class. This was working fine but then it just stopped and I can’t figure out why. As far as I know nothing that could affect it has been changed and the same routine used for the main content area still works.
<?php if(is_front_page() ) { ?> <div class="sidebar-frame home"> <div class="sidebar home"> <?php } else { ?> <div class="sidebar-frame"> <div class="sidebar"> <?php } ?> <?php get_sidebar(); ?> </div> </div>
The parent theme is Felicity from wp.org.
- The topic ‘Conditional tag stopped working’ is closed to new replies.