Just trying to get the (.portfoliocategs) category menu on this site to have a different colour highlight for each li.
[link to website in below comment]
As you can see at the moment they're all blue. I would like to be able to specify either a class or colour for each category li listed.
Any ideas on how this could be done?
EDIT: This is the code for the category menu - I'm not sure how to add a CSS class to each seperate category as it seems to grab "all categories" from the php??
<?php single_cat_title(); ?>
$categories = get_categories('hide_empty=1&child_of='.$categs);
foreach ($categories as $cat) {
echo "".$catname."\n";
echo ('cat_ID).'">'.$cat->cat_name.'');
}
?>