Announcement Bar Issue ( Shopify Prestige Theme )

Hello Everyone!

I am using Shopify prestige theme. I have added announcement bar through coding. But I want announcement bar to change after 5 seconds or 10 seconds. Please help me. Thank you.

Store: https://delicious-fruits-vegetables.myshopify.com/

Password: Admin

Screenshot 2025-01-04 043051.png

I used this code.

{%- if section.settings.enable_bar -%}
{%- unless section.settings.home_page_only and template != ‘index’ -%}

{%- for block in section.blocks -%} {%- if block.type == 'announcement_bar' -%}

{%- if block.settings.link -%} {{ block.settings.content | escape }} {%- else -%} {{ block.settings.content | escape }} {%- endif -%}

{%- endif -%} {%- endfor -%}
#section-{{ section.id }} { background: {{ section.settings.background }}; color: {{ section.settings.text_color }}; } .AnnouncementBar__Content.Heading {display: none;}

{%- endunless -%}
{%- endif -%}

{% schema %}
{
“name”: “Announcement bar”,
“settings”: [
{
“type”: “checkbox”,
“id”: “enable_bar”,
“label”: “Enable bar”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “home_page_only”,
“label”: “Home page only”,
“default”: false
},
{
“type”: “color”,
“id”: “background”,
“label”: “Background”,
“default”: “#000000
},
{
“type”: “color”,
“id”: “text_color”,
“label”: “Text”,
“default”: “#ffffff
}
],
“blocks”: [
{
“type”: “announcement_bar”,
“name”: “Announcement Bar”,
“settings”: [
{
“id”: “content”,
“type”: “text”,
“label”: “Announce something here”
},
{
“id”: “link”,
“type”: “url”,
“label”: “Link”
}

]
}
],
“presets”:[
{
“name”:“Announcement bar”
}
]
}
{% endschema %}

Hi @dreamtechzone_5

I just check your store and see the announcement bar is changing already. Do you need any other help?

Best,

Daisy

Yes, But I want to change the announcement bar every 5 seconds.

HI @dreamtechzone_5

Please change the 3 digit here to 5000

Once it’s fixed but feels too slow, revert it. Only adjust the delay number to 5000

I hope this helps

Best,

Daisy