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
4373 1127 1385

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


- Custom Design | Advanced Coding | Store Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️

View solution in original post

Replies 6 (6)

Small_Task_Help
Shopify Partner
544 17 39

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 */
}
Click here to Contact and Get Shopify Store Help
E-mail - hi@ecommercesmalltask.com
We are Shopify Experts in India
Google My Business - Ecommerce Small Task
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
544 17 39

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

Click here to Contact and Get Shopify Store Help
E-mail - hi@ecommercesmalltask.com
We are Shopify Experts in India
Google My Business - Ecommerce Small Task

Moeed
Shopify Partner
4373 1127 1385

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


- Custom Design | Advanced Coding | Store Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️
Khyamtents
New Member
7 0 0

Thanks - worked great

Moeed
Shopify Partner
4373 1127 1385

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


- Custom Design | Advanced Coding | Store Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️