I have added dropshaddow to product images in catalouge-pages. But i want to leave the products of the category “utility” out, so the pictures in this category do not have drop shaddow. (EDIT: so they don’t have dropshaddow even if they are shown in another category where they also belong)
This is what I have to add to all products:
.woocommerce ul.products li.product a img {
box-shadow: 0 0 14px #aaa !important;
}
I’m trying to target the specific category:
.product-cat-utility ul.products li.product a img {
box-shadow: 0 0 0 #aaa !important;
}
It does not work, and I am hoping for a more elegant solution.
Thanks.
2
Answers
For anyone searching, this seams to do the trick:
The
<body class="...">
on each category page contain unique classes, both the term id and term nameTry something like this
add a custom body class for term (parent) utility and the childs