Edit CSS for active links, taxonomy Menu
-
I have a taxonomy list which links to display the children of the selected taxonomy item:
<?php //list terms in a given taxonomy (useful as a widget for twentyten) $taxonomy = 'staff-area'; $tax_terms = get_terms($taxonomy); ?> <div class="staffgroups"> <ul> <?php foreach ($tax_terms as $tax_term) { echo '<li>' . '<a href="' . esc_attr(get_term_link($tax_term, $taxonomy)) . '" title="' . sprintf( __( "View all posts in %s" ), $tax_term->name ) . '" ' . '>' . $tax_term->name.'</a></li>'; } ?> </ul> </div>
What I would like to do is have the menu item in bold and a different color so that you know which item you are viewing.
I have tried: .staffgroups ul li a:active but this doesn’t work.
Any help please?!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Edit CSS for active links, taxonomy Menu’ is closed to new replies.