possible to stop highlighting “home” tab in menu?
-
Hi, I am trying to use WP as a CMS, and have the static front page hack activated. it’s working beautifully, plus I am using pages for the sections of my site, and have the active pages highlighting. Everything works fine except for my blog section. I want it to link to mysite.com/blog/ and I followed the directions in the WP codex for making the blog appear in a non-root location (https://codex.www.ads-software.com/Pages#Using_a_Page_as_the_Front_Page)
Right now, when I click on my blog tab, it highlights the “home” tab instead of the blog tab. I can’t figure out how to get it to highlight the blog tab and not the home tab. Here is my header menu code:
<li id="home"><a>/" <?php if(is_home()) echo 'id="current"';?>>Home</a>
<li id="services"><a>/services" <?php if(is_page('services')) echo 'id="current"'; ?>>Services</a>
<li id="port"><a>/portfolio" <?php if(is_page('portfolio')) echo 'id="current"'; ?>>Portfolio</a>
<li id="blog"><a>/blog" <?php if(is_category(0)) echo 'id="current"'; ?>>Blog</a>
<li id="contact"><a>/contact" <?php if(is_page('contact')) echo 'id="current"'; ?>>Contact</a>
You can see what I mean at https://www.caterpixel.com/ and click on “Blog.”
Thanks for any suggestions.
- The topic ‘possible to stop highlighting “home” tab in menu?’ is closed to new replies.