Skip to:
Content
Pages
Categories
Search
Top
Bottom

WP Blix theme forum tab highlight


  • airdrawndagger
    Member

    @airdrawndagger

    http://www.doublepeace.se/forum

    I’m trying to make the forum tab highlighted while browsing my bbpress. I’m using is_home to highlight it on my blog frontpage, and for some reason it stays highlighted on START when in the forum. What can I use to get the forum tab highlighted? I’m guessing it’s an if-statement similar to is_home. Please help! Thank you

Viewing 2 replies - 1 through 2 (of 2 total)

  • fel64
    Member

    @fel64

    I think you’d check for a bbpress global, like $bb. But how did you get it working in the end?


    airdrawndagger
    Member

    @airdrawndagger

    I don’t really remember but this is what I have:

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

    <?php wp_list_cats('sort_column=id&hide_empty=0&exclude=2'); ?>

    <li<?php if ($forumpage == TRUE) { echo " class="current-cat""; } ?>><a href="http://www.doublepeace.se/forum" title="Forum">Forum</a></li>

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.