Shopify themes, liquid, logos, and UX
Hi all, just working on my store when a problem came up. How can I change the theme of the header on my contact page to the colour used below, #F8F8F8? (make the header darker to match the rest of the page) Thank you for your help!
Website URL: https://id0et1-1k.myshopify.com/
Website Password: ildeth
Solved! Go to the solution
This is an accepted solution.
Hi @cynoapparel
I hope you are well. You can follow our instructions below:
1/ Shopify admin > Online store > Edit code: https://prnt.sc/M4p-gua99Uf4
2/ Search for "theme.liquid" file: https://prnt.sc/b6xveIKe-Rh2
3/ Open the file and search for </head> tag and add the following code above </head> tag: https://prnt.sc/KWtKYyZkDtYJ
Here is the code for Step 3:
{% style %}
{% if canonical_url == "https://id0et1-1k.myshopify.com/pages/contact" %}
This is a code customization work please hire a shopify developer and contact shopify support!
Thanks!
This is an accepted solution.
Hi @cynoapparel
I hope you are well. You can follow our instructions below:
1/ Shopify admin > Online store > Edit code: https://prnt.sc/M4p-gua99Uf4
2/ Search for "theme.liquid" file: https://prnt.sc/b6xveIKe-Rh2
3/ Open the file and search for </head> tag and add the following code above </head> tag: https://prnt.sc/KWtKYyZkDtYJ
Here is the code for Step 3:
{% style %}
{% if canonical_url == "https://id0et1-1k.myshopify.com/pages/contact" %}
That worked, thank you so much!
Edit code -> search "theme.liquid' file => then in file search </body> tag and before that tag place the code i have provided below
<script>
document.addEventListener("DOMContentLoaded", function() {
if (window.location.pathname.includes("/pages/contact")) {
document.querySelector('.header-wrapper').style.backgroundColor = "#F8F8F8";
}
});
</script>
like this
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn 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, 2025