Shopify themes, liquid, logos, and UX
Hi everyone.
I am using the spotlight theme. I want to add some color to the images. My product images have transparent backgrounds. So I would love to make the background a light grey color. Is there anyway this can be done?
My website is www.PPFMerch.com and the password is abc123.
Thank you!
Hi @JSPENCER0203,
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above </head> tag:
<style>
.media.media--transparent.media--hover-effect {
background-color: lightgray !important;
}
</style>
Here is result:
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
You can do that by adding this code to Custom CSS of your theme in Online Store > Themes > Customize > Theme settings
.product-media-container .media,
.card--standard .card__inner:after {
background: #f1f1f1;
}
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Hi @JSPENCER0203,
Please go to Actions > Edit code > Assets > base.css file and paste this at the bottom of the file:
.collection-card-wrapper .media.media--transparent {
background: #808080b0;
}
Hi @JSPENCER0203 ,
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head>
<style>
.product-media-container .media,
.card--standard .card__inner:after {
background: #f1f1f1 !important;
}
</style>
If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
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