Shopify themes, liquid, logos, and UX
Hi! I'm trying to remove the announcement bar from our homepage only. Using theme called Crave and here is our site: https://www.produce-aisle.com/. I am very new at all things CSS, so any help would be so appreciated!
Thank you!
MK
Go to your online store -> edit code -> theme.liquid file and paste this code before closing </body> tag
{% if template == 'index' %}
<style>
.announcement-bar {
display: none;
}
</style>
{% endif %}
this will remove the announcement bar from home page only
Hi @mk331
This is Richard from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the </head> to get this solved
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: click on theme.liquid and paste the code above the </head>
{% if template == 'index' %}
<style>
.announcement-bar-section{
display: none;
}
</style>
{%endif%}
Hope this can help you solve the issue
Best regards,
Richard | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
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