I'm attempting to create a side nav of all the forums on my site. When a user is viewing a certain forum, I want that "tab" to be highlighted using CSS.
All I need is to assign a class="on" attribute to the forum [li] [/li] tag if it is the current forum being viewed. Anyone know how I can check the current forum against the forum id?
Here's the code for my menu creation:
<?php if ( bb_forums() ) : ?>
<h3><?php _e('Forums'); ?></h3>
<ul>
<li <?php if ( is_front() ) : ?>class="on"<?php endif; ?>><a>">Overview</a>
<?php while ( bb_forum() ) : ?>
<li><a>"><?php forum_name(); ?></a></li>
<?php endwhile; ?>
</ul>
<?php endif; // bb_forums() ?>