Dynamic Highlighting & is_archive problem
-
I am looking for another set of eyes on this. For whatever reason the archive portion of this is not working. Home works fine, about works fine, but archive just won’t accept the new id.
<li><a class="navhome" <?php if(is_home()) echo 'id="current"' ;?> href="<? bloginfo('url') ?>">Home</a></li> <li><a class="navarchives" <?php if(is_archive() ) echo 'id="current"' ;?> href="<? bloginfo('url') ?>/archives/">Archives</a></li> <li><a class="navabout" <?php if(is_page('About') ) echo 'id="current"' ;?> href="<? bloginfo('url') ?>/about/">About</a></li>
I’ve tried using is_page(‘archives’) and that doesn’t work either. I can copy paste the about code and have it work, but only on the about page.
I am running this through xampp so can’t link to it at the moment.
Thanks in advance.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Dynamic Highlighting & is_archive problem’ is closed to new replies.