How to Fix Inconsistent Background Color on Shopify Pages?"

Solved

How to Fix Inconsistent Background Color on Shopify Pages?"

faizkhanzade
New Member
4 0 0

How can I fix the issue where the body background color on some pages of my Shopify store (e.g., Privacy Policy page) is different from the rest of the website? I'd like to make it consistent with my site’s design

image.png

Accepted Solution (1)
DaisyVo
Shopify Partner
2771 332 384

This is an accepted solution.

Hi @faizkhanzade 

 

In order to fulfill your request, please follow these steps
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above </head>

 

{% style %}
      {% if canonical_url == "https://outflairz.store/policies/privacy-policy" %}
          main#MainContent {
              background: white !important;
          }
          main#MainContent * {
              color: black !important;
          }
      {% endif %}}
    {% endstyle %}


I hope this helps

 

Best,

 

Daisy

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution

View solution in original post

Replies 3 (3)

DaisyVo
Shopify Partner
2771 332 384

Hi @faizkhanzade 

 

Please provide the URLs of the pages you want to edit so I can assist you more effectively.

For default pages like policies, they usually come with standard layouts. If any adjustments are needed, you’ll have to manually edit them.

Let me know the specific changes you'd like, such as:

  • Background color: What color would you prefer?
  • Text color: Do you have a specific color in mind?

Please provide these details clearly, and I’ll guide you through the customization process!

 

Best,

 

Daisy

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
faizkhanzade
New Member
4 0 0
Hi @Daisy,

Thank you for your response!

The background color of my website is already set to white, and the text color is black, which is what I want. However, on some pages like the Privacy Policy page, the background appears in a different shade (light grey) instead of white.

Here’s the URL of the Privacy Policy page: https://outflairz.store/policies/privacy-policy.

I’d like to make the background completely white (#FFFFFF) to match the rest of the website. Could you guide me on how to achieve this?

Thanks,
Faiz Khan

DaisyVo
Shopify Partner
2771 332 384

This is an accepted solution.

Hi @faizkhanzade 

 

In order to fulfill your request, please follow these steps
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above </head>

 

{% style %}
      {% if canonical_url == "https://outflairz.store/policies/privacy-policy" %}
          main#MainContent {
              background: white !important;
          }
          main#MainContent * {
              color: black !important;
          }
      {% endif %}}
    {% endstyle %}


I hope this helps

 

Best,

 

Daisy

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution