Happening now | Office Hours: Customizing Your Theme With Moeed | Ask your questions now!

How to fix white background issue in product images?

How to fix white background issue in product images?

fra_m2
Visitor
1 0 0

https://peruginiabbigliamento.com/products/sneakers-stella-gold-gold-art-b22-gb599

 

I have an issue with product images backgrounds, up here there is an example. Those images are in PNG as you can see, and when you are in the product there aren't issues at all. The problem is when you look at the product from the suggested products sections under a product page: the theme shows a white background instead of a pure png, that is exactly what I'm trying to avoid.

The problem is the same if I search the shoe in the search bar.

Can someone help me?

  

Screenshot 2023-03-16 alle 17.36.47.png

Screenshot 2023-03-16 alle 17.35.05.png

Screenshot 2023-03-16 alle 17.35.52.png

 

 

Reply 1 (1)

Jason
Shopify Partner
11207 226 2320

Your img element has css added to give it a background colour. Adding this to the bottom of your stylesheet may help - but be sure to test to make sure it doesn't effect other parts of the site you didn't exist. If it does effect other things we'll need to make the css reference more specific.

/* remove the background color from the img in grid views */
.box-ratio img { background:none }
★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★