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
Hi,
I would like my announcement bar to be visible only on my homepage (www.sugarfreeeu.com), does anyone know how can I make it happen ? dawn theme
thank you in advance !
{% if template.name != 'index' %}
<style>
.announcement-bar-section {
display: none;
}
</style>
{% endif %}
This worked for me thanks.
Thank you for your response. It's good to know that it's worked for you. Kindly feel free to get back to me if you need any further assistance.
If helpful then please Like and Accept Solution.
Hi @Eli90
You can follow this suggestion
Go to theme => edit code, then find the "{% section 'announcement-bar' %}" in the theme.liquid file:
then you edit the above code to the following code: "{% if request.path == "/" %} {% section 'announcement-bar' %}{% endif %}"
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕.
Product Labels by BSS | B2B Solution & Custom Pricing
Need help from our expert? Kindly share your request with us via community@bsscommerce.com