Shopify themes, liquid, logos, and UX
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
Solved! Go to the solution
This is an accepted solution.
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 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:
Please provide these details clearly, and I’ll guide you through the customization process!
Best,
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
This is an accepted solution.
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
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025