Shopify themes, liquid, logos, and UX
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
I've seen the previous solutions to hiding the announcement bar on certain pages. I want to hide it on my main/index page and I thought it looked straightforward but I can't seem to get it to work?! I'd really appreciate some input. I'm using Dawn 10.0 Many thanks in advance for any replies. Alun
Solved! Go to the solution
This is an accepted solution.
Hi @Alun
I hope you are doing good and welcome to the Shopify Community!
I am San from MS Web Designer.
Please add this code in your index.liquid file before <head> tag:
{% if template.name == "index" %}
{% style %}
.announcement-bar-section {display: none;}
{% endstyle %}
{% endif %}
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
This is an accepted solution.
Many thanks San! That works great. One small edit for anyone following on for the same solution, the file is "theme.liquid" in Dawn
I have sooooo many questions - looks like a great friendly forum to ask them
This is an accepted solution.
Hi @Alun
I hope you are doing good and welcome to the Shopify Community!
I am San from MS Web Designer.
Please add this code in your index.liquid file before <head> tag:
{% if template.name == "index" %}
{% style %}
.announcement-bar-section {display: none;}
{% endstyle %}
{% endif %}
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
This is an accepted solution.
Many thanks San! That works great. One small edit for anyone following on for the same solution, the file is "theme.liquid" in Dawn
I have sooooo many questions - looks like a great friendly forum to ask them