Since you’re only looking to modify the first menu item, and you have them set up in an unordered list; you could use a counter or you could just use CSS2 without having to add any special classes to the item.
The following CSS will bold the first item in the list and the rest of the list items will have standard formatting (assuming that the class of the unordered list is “category-list”):
ul.category-list li:first-child {
font-weight: bold;
}
This CSS is supported in IE7 and above; and is supported in all other browsers of which I am aware. If you need to support Internet Explorer 6, you may need a fallback.
Hi Curtis
That worked perfectly! Thanks very much. I never knew that class existed.
Fingers crossed ie6 disappears soon. But just in case anyone knows any other solutions, please let me know.
Thanks again!
For the record found a way of outputting the result using a counter in php, thanks all:
http://wordpress.org/support/topic/bold-up-first-result-of-loop