Select background for product category images
-
I want to use CSS to change the background to SOME of the transparent PNG images used for product categories. I could just change the image itself and add a background, but would prefer to do it with CSS so I can select a different color later if desired.
For this project, I only want a colored background for all jewelry category images and jewelry subcategory images and jewelry products images. Some are currently JPG’s with the wrong color and, if this works, I will need to recreate the images with a transparent background. I have found a way to select all product images that are inside the jewelry category, but I cannot find a way to select the category image itself.
This works for product images in the jewelry category:
.woocommerce .product_cat-jewelry img {background-color:#f5f3ed !important}I’ve tried MANY other selectors unsuccessfully to style the category image. Inspecting the page doesn’t seem to reveal the category selectors I need. How can I find the proper selector for category and subcategory images?
The page I need help with: [log in to see the link]
- The topic ‘Select background for product category images’ is closed to new replies.