View Single Post
10-01-2009, 08:52 AM
#2
Garyrae is offline Garyrae
Status: Request a custom title
Join date: Dec 2005
Location: Colchester, UK
Expertise:
Software:
 
Posts: 4,625
iTrader: 16 / 100%
 

Garyrae is on a distinguished road

Send a message via MSN to Garyrae Send a message via Skype™ to Garyrae

  Old

Code:
<li<?php if(is_category('tutorials') || in_category('tutorials')) { echo ' class="current"'; } ?>><a href="<?php get_option('home'); ?>/tutorials/">Tutorials</a></li>
Sorta thing.

Basically that adds ' class="current"' to the <li>, if the user is viewing the category archive for 'Tutorials', or the post they're viewing is in the 'Tutorials' category.

Reply With Quote