Solved

Show announcement bar only on homepage

swishlatvija
Explorer
62 0 8

Hello, could someone please show us how to display the announcement bar only on homepage? So it's not visible on other pages.

 

Link: swish.eu

 

Thank you!

Accepted Solution (1)

shraddha_patel
Shopify Partner
153 24 23

This is an accepted solution.

Hello,

 

Go to theme files > find announcement bar file and paste below lines around your code

{% if template == 'index' %} 

 

{% endif %}

shraddha_patel_0-1680527261423.png

Let me know if any.

Thank you.

Need more help with theme customization and store development ? You can Reach me here
Or Text me

View solution in original post

Replies 4 (4)

shraddha_patel
Shopify Partner
153 24 23

This is an accepted solution.

Hello,

 

Go to theme files > find announcement bar file and paste below lines around your code

{% if template == 'index' %} 

 

{% endif %}

shraddha_patel_0-1680527261423.png

Let me know if any.

Thank you.

Need more help with theme customization and store development ? You can Reach me here
Or Text me
swishlatvija
Explorer
62 0 8

This was the fastest solution that we have ever experienced. Almost like in a chat, hah. Thank you!

shraddha_patel
Shopify Partner
153 24 23

You're welcome !

Need more help with theme customization and store development ? You can Reach me here
Or Text me
mmaevemmm
Tourist
6 0 1

Hi - I'm having trouble figuring out where to place the code into my template. I'm using Dawn, and the code looks a bit different than what you have above.