My product pages are stuck on background #FFFFF. I want to alter to #faf7f5. to match rest of site

Solved

My product pages are stuck on background #FFFFF. I want to alter to #faf7f5. to match rest of site

tim_wilfreds
Tourist
13 0 1

My product pages are stuck on background #FFFFF. I want to alter to #faf7f5. to match rest of site

 

I have tried various solutions from the Shopify Community

 

Solutions I've tried

 

1) Adding to the styles.css (in assets)

 

body {
background-color: #faf7f5;
}

 

2) Code in the themes.liquid (link)

 

<style> main#MainContent { background-color: grey; } </style>

 

All products on site use the same products template. Have ensured the product editor hasn't set anything (Screenshot 2024-08-21 at 11.53.31.png)

 

---

 

 

A product page https://wilfredssweets.shop/collections/liquorice/products/family-favourites-liquorice-gift-box

 

 

Any help so so appreciated!!!!!!

 

Thanks, 

Tim 

 

 

 

NB:  just noticed this at the top of the theme.liquid 

Screenshot 2024-08-21 at 11.58.25.png

 

Tim Fisher, from wilfreds.shop
Accepted Solution (1)

niraj_patel
Shopify Partner
2378 514 511

This is an accepted solution.

Hello @tim_wilfreds 

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>
  div.product-product-template {
      background: #faf7f5 !important;
   }
</style>

niraj_patel_0-1724238065206.png

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com

View solution in original post

Replies 3 (3)

niraj_patel
Shopify Partner
2378 514 511

This is an accepted solution.

Hello @tim_wilfreds 

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>
  div.product-product-template {
      background: #faf7f5 !important;
   }
</style>

niraj_patel_0-1724238065206.png

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com
tim_wilfreds
Tourist
13 0 1

Hi Niraj - thankyou!

 

So the related product section - is still showing as #FFFFFF background 

 

I asked the developer of the Vitals App - who built that related products section.   They confirmed that the background for that section is seemingly set as #ffffff.  (and their own app doesn't have color background)

 

screenshot.png

 

So, how do I edit the background color for that section?

 

Thanks, 

Tim

Tim Fisher, from wilfreds.shop
niraj_patel
Shopify Partner
2378 514 511

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>
  body {
      background-color: #faf7f5 !important;
   }
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

 

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com