Shopify themes, liquid, logos, and UX
Hi, Is there a way to change the announcement and footer colour on only one page on Dawn? I use a pale pink colour at the minute but I have a new men's range so on the Men's page I want to change it to a grey colour.
Solved! Go to the solution
This is an accepted solution.
You need to add this one in the liquid code.
Open the edit code > theme.liquid > find the body tag > then paste this code.
{% if page.handle == "mens" %}
<style>
.announcement-bar.color-accent-2.gradient,
footer.footer.color-accent-2.gradient.section-sections--15523320299565__footer-padding,
input#NewsletterForm--sections--15523320299565__923af299-839e-4239-bc43-a3304ef29048,
.color-accent-2.gradient.content-container.isolate.content-container--full-width.section-sections--15523320299565__923af299-839e-4239-bc43-a3304ef29048-padding {
background: gray;
}
</style>
{% endif %}
Like the picture below.
I hope it help.
Hi @Jennifer3011 ,
Would you mind to share your URL website with password if its protected?
Thanks!
Thank you for the information.
Yes, It is possible to change to the specific page but it needs a liquid code to know which specific pages you want to change.
Brilliant, thank you so much. How should I move forward with this?
This is an accepted solution.
You need to add this one in the liquid code.
Open the edit code > theme.liquid > find the body tag > then paste this code.
{% if page.handle == "mens" %}
<style>
.announcement-bar.color-accent-2.gradient,
footer.footer.color-accent-2.gradient.section-sections--15523320299565__footer-padding,
input#NewsletterForm--sections--15523320299565__923af299-839e-4239-bc43-a3304ef29048,
.color-accent-2.gradient.content-container.isolate.content-container--full-width.section-sections--15523320299565__923af299-839e-4239-bc43-a3304ef29048-padding {
background: gray;
}
</style>
{% endif %}
Like the picture below.
I hope it help.
Hi @Jennifer3011, saw you were able to get some help. Were you able to figure out the issue?
I hope you are doing good and welcome to the Shopify Community!
I am San from MS Web Designer.
Please add this code before </body> tag in your theme.liquid file:
{% if page.handle == 'mens' %}
<style>
.announcement-bar.color-accent-2.gradient {background: #000 !important;}
footer.footer.color-accent-2.gradient.section-sections--15523320299565__footer-padding {background: #403f3f !important;}
</style>
{% endif %}
Note: You can change the background color for "Announcement-bar" & "Footer" by replacing the color code.
Regards,
San
If it’s helpful to you, please mark it as a solution.
Need Help with Shopify Design, Migration, Speed, or Custom tasks?
email: hi@mswebdesigner.com
Try Our Conversion Booster app to get more sales | Connect Our Founder Linkedin
User | RANK |
---|---|
227 | |
181 | |
63 | |
58 | |
47 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023