How do I change the product background colour for all products on my Shopify store?

Topic summary

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.

Dear AnneLuo,

Please see the attached screenshot. This is the view after you select the product. If possible, I want the grey to be visible even in this view mode.

kind regards,

Mnqobi

Dear Annluo,

Additionally, I notice that the grey disappears when I hover over the product. I would like the grey to not disappear when I hover over the product. I would like for the grey to be a constant background.

Kind regards,

Mnqobi

Dear AnneLuo,

May you assist me please.

Kind regards,

Mnqobi

Implementing this requires adding some custom code. So I need to access your store as a collaborator if possible.

Dear AnneLuo,

Please access my store as a collaborator.

Kind regards,
Mnqobi

Please share me your collaborator code. I will check it for you.

Dear AnneLuo, the code is 0141.

I have applied the access. Please accept. I’m busy now. So I will help you with it later.

Dear AnneLuo, the request came from Shinetech Changchun. Is that you?

Yes.

Alright thank you for the clarity.

Hi, @Ngadlangadla

Have changed the background color of the products for your store. You can view on your online store.

Dear AnneLuo,

Thank you. It is perfect. How would I ensure the changes do not disappear
when updating my theme?

Kind regards,
Mnqobi