home tab is hilighted when it shouldn’t
-
I have integrated bbpress into my studiopress theme located at:
everything works great except for the nav links active page at the top. the “home” link is acting like it is the current page when viewing the forum. Here is the code I am using for the tabs and to get the “forum” tab to generate the current page class when users are viewing the forum and other pages within the mipages.net/forum directory…
<? $a = $_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']); $b = "mipages.net/forum"; if (is_home()) { $addclass = ' class="current_page"'; } else { $addclass = ''; } echo "<li" . $addclass . "><a title='Home'><span>Home</span></a>"; if ($a == $b) { $addclass = ' class="current_page"'; } else { $addclass = ''; } echo "<li" . $addclass . "><a title='Forum'><span>Forum</span></a>"; echo list_all_pages();?>
the $a == $b check works perfectly (if you click other links you will see how the forum won’t keep the current page class. but for some reason the home tab will stay as the current page when viewing the forum pages, though it does it for nothing else..
Anyone know what I am doing wrong here?
- The topic ‘home tab is hilighted when it shouldn’t’ is closed to new replies.