Highlighting the current forum tab
Hi, I’m making a navigation and was looking for help with highlighting the links, depending what page/forum you are on.
I have a homepage nav link like:
how can I add class=”current” and highlight the link when on the mainpage?
I also run a list of the forums in a similar style
<?php foreach ( $forums as $forum ) : ?>
<a class="forum-link" href="<?php forum_link( $forum->forum_id ); ?>"><?php forum_name( $forum->forum_id ); ?></a>
<?php endforeach; ?>
Is there a way to add class=”current” depending on what forum the user is browsing?
I know this can be done on wordpress, but I dont know the functions for bbpress yet, and good info is far and wide.
- You must be logged in to reply to this topic.