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
Tourist
8 0 5

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
2303 847 1061

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
9539 1918 1955

 

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 and Accept solution! or Buy me coffee
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Ryviu: Aliexpress Reviews - AliExpress Reviews Importer, one-click import aliexpress reviews, export reviews to CSV file.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

namphan
Shopify Partner
1329 164 199

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
Need help with your store? [email protected]

websensepro
Shopify Partner
1220 136 156

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 | Shopify Custom Coding | Custom Modifications
Subscribe to our youtube channel or buy us a Cofee here

Free Shopify Beginner Tutorial