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
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024