We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Transparent Image background on collections page

Solved

Transparent Image background on collections page

myreech
Visitor
2 0 0

I'm sure this is a simple line of code but I can't figure it out on my own or find the answer already.

 

My product images have transparent backgrounds (as evident when on a product page) but when included on a collections page, the background turns white. How do I make the background on these images transparent as well?

 

myreech.com

 

myreech_0-1639689184716.png

 

Accepted Solution (1)

hasanarmstrong
Shopify Partner
25 5 5

This is an accepted solution.

Hi @myreech,

 

Add this css code to your theme.css.

 

 

.collection-template .card__wrapper,
.collection-template .card__info {
 background: transparent;
}

 

Front-end developer who helps Shopify merchants with their website/s.
https://www.ecommercedevs.com/

View solution in original post

Replies 3 (3)

hasanarmstrong
Shopify Partner
25 5 5

This is an accepted solution.

Hi @myreech,

 

Add this css code to your theme.css.

 

 

.collection-template .card__wrapper,
.collection-template .card__info {
 background: transparent;
}

 

Front-end developer who helps Shopify merchants with their website/s.
https://www.ecommercedevs.com/
myreech
Visitor
2 0 0

@hasanarmstrong  Brilliant! Thanks so much

hootcouture
Visitor
1 0 0

I added this to my theme setting CSS but it didn't work?