Shopify themes, liquid, logos, and UX
Hi everyone. I hope everyone doing well.
My website shows a grey background for products with a transparent (PNG) background. Is it possible to change it to white? If so, could you provide the necessary code?
Any help would be greatly appreciated.
Here is one of the transparent product image URL: https://ladyhyphae.com/collections/therapeutic/products/pink-buffalo
Solved! Go to the solution
This is an accepted solution.
@Digital_Imran , Please change the previous code like this
<style>
use-animate .product__media,
use-animate .image-animate {
background: white !important;
}
</style>
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
Step 1. Go to Admin -> Online store -> Theme > Edit code
Step 2. Find the file theme.liquid.
Step 3. Add this code above </body>
<style>
use-animate .product__media {
background: white !important;
}
</style>
Result:
If it helps you, please like and mark it as the solution.
Best Regards 😍
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
Thanak you @BSSCommerce-B2B it works . Can you also provide codes for the collection page? I attached the screenshot.
Here is the URL of the collection page: https://ladyhyphae.com/collections/therapeutic
Screenshot: https://prnt.sc/Q-b6hHmxiYur
This is an accepted solution.
@Digital_Imran , Please change the previous code like this
<style>
use-animate .product__media,
use-animate .image-animate {
background: white !important;
}
</style>
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
Thank you so much @BSSCommerce-B2B . It works 😄
Hello @Digital_Imran
You can add code by following these steps
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </body> on theme.liquid
<style>
.product__media.image-animate.media.media--square.media-mobile--square {
background: #fff !important;
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Thank you so much @niraj_patel sir 🙂
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025