Make the background of product images a light grey color - spotlight theme

Make the background of product images a light grey color - spotlight theme

JSPENCER0203
Excursionist
19 0 6

Hi everyone.

 

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!

Replies 4 (4)

BSSCommerce-HDL
Shopify Partner
2305 835 909

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: 

BSSCommerceHDL_0-1726449235311.png

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

Dan-From-Ryviu
Shopify Partner
11612 2276 2456

 

Hi @JSPENCER0203 

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;
}

Screenshot 2024-09-16 at 10.24.23.pngScreenshot 2024-09-16 at 10.26.01.png

- 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.

namphan
Shopify Partner
2664 341 391

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;
}
Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com

websensepro
Shopify Partner
1879 224 267

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!

Need a Shopify developer? Hire us at WebSensePro For Shopify Design Changes/Coding
For Free Tutorials Subscribe to our youtube
Get More Sales Using Big Bulk Discount APP
Create Your Shopify Store For Just 1$/Month
Get More Sales Using Big Bulk Discount APP