Shopify themes, liquid, logos, and UX
Hi,
I am trying to make the background for the picture within my product cards to be transparent but it seems to default to black in the Shopify Dawn theme current version. Where can I change this setting or where should I put custom code to fix this?
As you can see from this screenshot, I have set the colour scheme to transparent, but the background to the product card appears black, but you can see that in the screenshot that the same product pictures displays correctly just below it.
Here is a preview link to my draft store page:
https://jbayf0dsajl5xi5y-56906317957.shopifypreview.com
Thanks for your help.
Matt
Solved! Go to the solution
This is an accepted solution.
@Hensolo please add this css to the very end of your base.css file and check,
Shopify Admin -> Online Store ->Theme -> Edit code -> base.css
.product-media-container{border: none !important; background-color: transparent !important;}
This is an accepted solution.
@Hensolo please add this css to the very end of your base.css file and check,
Shopify Admin -> Online Store ->Theme -> Edit code -> base.css
.product-media-container{border: none !important; background-color: transparent !important;}
Thanks for your help, this solution worked for me. Much appreciated.
"Hey @Hensolo, I see you're trying to make the product card background transparent in the Dawn theme. The CSS solution provided by @suyash1 should work, but if you need further help with Shopify theme customizations, feel free to reach out. I specialize in Shopify design and marketing. Happy to assist!"
Try to avoid theme code edits. Editing theme code will prevent it from updating.
My solution would be to add this code to the product info sections setting "Custom CSS":
.product-media-container {
--color-background: transparent;
--color-foreground: transparent;
}
Thank you Tim - your solution worked too and I agree it is better to avoid theme code edits.
To the other shopify noobs reading this - use Tim's solution!
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025