Active Links Not working correctly with static pages..
-
my site: https://imkeysa.com
here is the code I’m using for my navigation:
<li<?php if (is_page('home')) { echo " id=\"current\""; }?>> <a href="<?php bloginfo('url') ?>BLOG</a> </li> <li<?php if (is_page('blog')) { echo " id=\"current\""; }?>> <a href="<?php bloginfo('url') ?>/blog">BLOG</a> </li>
if you visit my website you’ll see just one “current” link which is -Blog.
what can I do to fix this, to where the navigation lists both pages while the current link works?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Active Links Not working correctly with static pages..’ is closed to new replies.