CSS based on Category
-
I’m using the WP Post Carousel to display the latest posts on a site using the default theme. I’m trying to change the background color of the category label background based on the category – so for example if the post is in category 1 the category label will be red, if it’s in category 2 the category label will be blue, etc. I’m assuming this could be done with CSS and some PHP statements to surround the category with a class, but I’m not sure where to put the statements – or if this is something that is possible. Any help you can provide to point me in the right direction would be most appreciated!
Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘CSS based on Category’ is closed to new replies.