• 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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • It shows up just fine in WindowsXP/Firefox2. Have you changed it?

    Thread Starter bubblecat

    (@bubblecat)

    Yeah, I ended up installing a second copy of WordPress in a directory named /blog, and I just used the same template on that installation to create an illusion. This is better in the long run, I’m deciding, because there may come a time when I want to completely separate the blog from the rest of the site. But thanks for your response all the same! ??

    Hello,
    I am using the “pool” wordpress template and I would like my home page to be a static page and the second tab page to be the blog.
    As stated above, I went to the https://codex.www.ads-software.com/Pages#Using_a_Page_as_the_Front_Page
    page and followed the instructions:
    1. Activated static front page plug-in which worked great.
    2. As stated in the section ” Making your blog appear in a non-root folder” I created the blog.php file, copied the code, then from the WP admin, created a page called Blog along with the newly created Blog template.

    When I went to my site, my home page was fine but when I clicked on the Blog tab, I did not see my blog posts but the same contents as my home page.

    Can anyone help me figure out how to the get the Blog page to show the blog posts?
    My site is https://www.ocigk.com
    I removed the “Blog” page until I can find a solution.
    Any help is greatly appreciated.
    Tom

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘possible to stop highlighting “home” tab in menu?’ is closed to new replies.