Problems with active state menu for Homepage/Activity
-
I run single WP with BP Template Pack, and I set up Activity stream in Settings > Reading as Front page.
So I got activity stream on my homepage.
Unfortunately, I cannot get the active state fot the Home menu button to display, because the following statement doesn’t print class=”active” in the list item.
<li <?php if ( is_front_page() || bp_is_front_page() || bp_is_page( BP_ACTIVITY_SLUG ) ) { echo 'class="active"'; } ?> id="home-nav"><a href="<?php echo get_settings('home'); ?>" alt="Home">Home</a></li>
If I type http://cureuphoria.com/activity, than it prints it, because of the bp_is_page( BP_ACTIVITY_SLUG ) function.
But http://cureuphoria.com, the homepage, is not recognized from is_front_page() and bp_is_front_page().
Any hints?
- The topic ‘Problems with active state menu for Homepage/Activity’ is closed to new replies.