First element in a list: class=”cat-item-first”
-
Hi everyone,
I would like to add a class to the first item in a list, in my sidebar, like so:
<ul> <li class="cat-item cat-item-first cat-item-4"> </li> <li class="cat-item cat-item-5"> </li> [...] </ul>
This class definition comes from the “classes.php” file, but I do not want to change anything in the wordpress core files. I would like to make this change in my theme directory, and I do not know how.
Thanks for any tip about how to do this.
Pat
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘First element in a list: class=”cat-item-first”’ is closed to new replies.