Goal: Apply a light grey background behind all product images across the store.
Key steps and context:
Store URL shared; password provided. Initial access issues resolved via correct link and password entry.
Helper advised adding custom code in theme.liquid (before the tag). Note: product images need transparent backgrounds for the effect to show.
Merchant added the code (to the second tag) and confirmed it worked on listing pages.
Issues raised:
Grey background disappeared on product detail pages and on hover states. Screenshots were provided to illustrate.
Resolution:
Due to the broader scope (product pages and hover), collaborator access was requested and granted (via Shopify collaborator code). The helper implemented additional custom code.
Merchant confirmed the background is now consistently grey across the site and on hover.
Open item:
Merchant asked how to preserve these changes when updating the theme (theme updates can overwrite edited files). No answer yet.
Status: Functionality achieved; guidance on making changes update-safe (e.g., documenting edits, using a duplicate theme or child-like approach) still pending.
Summarized with AI on December 16.
AI used: gpt-5.
Is there a code for changing the product background colour for all the products on my Shopify store? If so, please share it with the instructions for effecting the said changes. I want the product background to be a light grey colour.
Thank you, I appreciate your prompt feedback. My Store URL is www.cloudandfire.co.za. The store is password protected at the moment. Will you require the password to assist me?
Thank you, I appreciate your prompt feedback. My Store URL is www.cloudandfire.co.za. It is password protected at the moment. Will you
require the password to assist me?
You can try this code by following these steps:
Step 1: Go to the online store ->Theme ->Edit Code.
Step 2: Find the theme.liquid file and add the following code before the tag
Note: the background of the product images must be transparent.
Hopefully it will help you. If yes then Please don’t forget hit Like and Mark it as solution!
I just realised that the grey disappears when I enter the product page. I want the code to be maintained even in the product view page. Please help me in this regard.