Why won’t ‘if’ ‘else’ work in footer.php?
-
Morning all,
I need to hide a div tag in my footer.php file and I am using this:
<?php if (is_home()) { ?><!-- /no-div --><?php } else { ?></div> <!-- /wrap --> <?php } ?>
But it does not work.
Am I doing something wrong? Any suggestions?
Many thanks
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Why won’t ‘if’ ‘else’ work in footer.php?’ is closed to new replies.