Category list styling question
-
I’m using <?php wp_list_cats(‘sort_column=name&optioncount=1’) ?> with inline styling to display a horizontal category list on my main archive page. When a viewer clicks on one of the displayed category titles, they are taken to the archive.php page which displays only the category they selected. I’ve also included the <?php wp_list_cats(‘sort_column=name&optioncount=1’) ?> inline styled horizontal category list on my archive.php page. I’d like to know if there is a way to style the specific categories in the horizontal list so that when a viewer is looking at a specific category’s archive page, the corresponding category title text on the list will be a different color than the rest of the category titles, indicating which page they’re looking at. So basically I want to know how to change the color of the active link in my horizontal category list. Sorry if my explanation seems convoluted. Thanks!
The topic ‘Category list styling question’ is closed to new replies.