Dear Yigit, I need your help!
I’ve a customer who wants pages indexed according to 3 categories (I’ve already installed a plugin to do this). Each category must have a special style (like this site http://www.vogue.it/ when you do the hover appear a red border on the images). For example let’s say that the 3 categories are “1”, “2” and “3”, all the images of the category “1” must have a yellow border when you do the hover, the category “2” a red border and the category “3” a blue border.
I need each content to show the color pertaining to its own category every time it appears, when visited as well as when listed.
How can I do that?
I’m desperate :(( Please help!!!
Hey opificioilgranello,
If you inspect the category page in question you will find a category class in the body tag, you can then use that for specific CSS for that category:
.your-category img {
border:1px solid red !important;
}
Best regards,
Rikard
Rikard! Thank you so much!!!