is_page tag not working properly
-
I can’t seem to figure out why the is_page tag isn’t working correctly, but the is_home tag works fine. Is there anything that is popping out at anyone else that I can’t see below?
Thanks for the help!
<body> <div class="section" id="header"> <div class="holder"> <img src="<?php bloginfo('template_directory');?>/images/header/logo-enigma.jpg" width="200" height="51" alt="Enigma Logo" id="logo" /> <ul id="menu"> <li <?php if(is_page('About')) { echo 'id="menu-current"'; } ?>>/about/" id="menu-about">ABOUT <li <?php if(is_home()) { echo 'id="menu-current"'; } ?>>/blog/" id="menu-blog">BLOG <li <?php if(is_page('Work')) { echo 'id="menu-current"'; } ?>>/work/" id="menu-work">WORK <li <?php if(is_page('Contact')) { echo 'id="menu-current"'; } ?>>/contact/" id="menu-contact">CONTACT </div><!-- /holder --> </div><!-- /section header -->
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘is_page tag not working properly’ is closed to new replies.