Re: How do I add a background to transparent images when zooming in?

Solved

How do I add a background to transparent images when zooming in?

Khyamtents
New Member
7 0 0

I am using Prestige theme and I have an off white background. When I look at my product images with transparent background they're off white:

 

Khyamtents_0-1720526374069.png

 

However if anyone (on desktop only) zooms in, the background goes to black, and half the image is then hidden:

 

Khyamtents_1-1720526418896.png

 

How do I have the zoomed in background colour the same as my main page colour?

Accepted Solution (1)

Moeed
Shopify Partner
6736 1820 2202

This is an accepted solution.

Hey @Khyamtents 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
.ppzoom__item {
    background: #FAFAFA !important;
}
</style>

RESULT:

Moeed_0-1720527801461.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

Replies 6 (6)

Small_Task_Help
Shopify Partner
830 28 74

Hi,

 

Custom CSS can help you.

 

CSS code example

/* Example CSS */
.zoomed-in-image-container {
    background-color: #f7f7f7; /* Replace with your off-white background color */
}
To Get Shopify Experts Help, E-mail - hi@ecommercesmalltask.com
About Us - We are Shopify Expert Agency
At Google My Business - Ecommerce Small Task - Hire Shopify Developers Ahmedabad
Khyamtents
New Member
7 0 0

Thanks, but didn't work 😞 

 

If it would be of help, here's the link:

https://khyam.co.uk/products/loktek-igloo-mk3-fast-pitch-tent 

Small_Task_Help
Shopify Partner
830 28 74

Can we check from our end? if yes then you can contact us (details in signature)

To Get Shopify Experts Help, E-mail - hi@ecommercesmalltask.com
About Us - We are Shopify Expert Agency
At Google My Business - Ecommerce Small Task - Hire Shopify Developers Ahmedabad

Moeed
Shopify Partner
6736 1820 2202

This is an accepted solution.

Hey @Khyamtents 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
.ppzoom__item {
    background: #FAFAFA !important;
}
</style>

RESULT:

Moeed_0-1720527801461.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


Khyamtents
New Member
7 0 0

Thanks - worked great

Moeed
Shopify Partner
6736 1820 2202

Thank you for your reply. I'm glad to hear that the solution worked well for you. If you require any more help, please don't hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications