Support » Themes and Templates » Display something in a certain manner on index page only

Viewing 6 replies - 1 through 6 (of 6 total)
  • I think you need to add class="current-cat" to the list-item you want to highlight.

    If the link you added is something like this it wont work,

    <li><a href="">Start</a></li>

    instead you should use something like this:

    <li<?php if (is_home()) echo " class=\"current-cat\""; ?>><a href="<?php bloginfo('url'); ?>">Start</a></li>

    but that could be a bit different, dipends on the code you have in your header.php
    basically the if statment is gonna add a class=”current-cat” to the home link when the home page is displayed, this class is defined in the css and is gonna higlight the current selection.

    Aah, don’t you love it when you just copy+paste and voila! Thank you so much for the help 🙂

    You’re welcome 🙂

    Ok, so now I added bbpress. My site is relocated to , the forum is at

    As you might have guessed I would like it to highlight a tab named forum while browsing bbpress. I’m using the wordpress headers as suggested throughout the bbpress support forums. Any help! As of right now it’s highlighting my START tab. Thank you!

    Is this difficult? Nobody knows how to do it? It would seem to me it would be similar to what I did above, but with something to identify it as a forum page? Please!

    Check it out at , click forum, you’ll see what I’m trying to do. Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Display something in a certain manner on index page only’ is closed to new replies.