marquee announcement

  1. Go to Online Store → Theme → Edit code.

  2. Put the below code in the header.liquid or index.liquid, whatever name you have.

{% if template == ‘index’ %}

// here your code for announcement bar

{% endif %}

or the below code if above doesn’t works:
Please add this code after the head of theme.liquid or index.liquid file:

#shopify-section-marquee { display: none; }

{% 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!