Im having trouble on keeping the marque announcement header on the front page only, ive tried with the code and it isn’t responding.
Hi @ragrobot1 , I hope you are doing well, kindly share your store URL. Thanks!
Hi @ragrobot1
Could you share your store link so I can give you the code to do that?
Hey @ragrobot1
Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.
Best Regards,
Moeed
https://3f7da4-e5.myshopify.com here is my store url thank you.
-
Go to Online Store → Theme → Edit code.
-
Put the below code in the header.liquid or index.liquid, whatever name you have.
{% if template == ‘index’ %}
// here your code for announcement bar
or the below code if above doesn’t works:
Please add this code after the head of theme.liquid or index.liquid file:
{% if template == ‘index’ %}
#shopify-section-marquee { display: block !important; }{% endif %}
If my reply helpful, kindly click like and mark it as an accepted solution.
Thanks!
Hi @ragrobot1
Please add this code to theme.liquid file, after in Online Store > Themes > Edit code
{% if template == 'index' %}
{% endif %}
hello I have tried and its still not responding, can I send you a collaborator code for help
hello I have put the code in and it wont work, can I send you a collaborator code for help