Hi,
can someone tell me how to add a countdown to the announcement bar? I would need the Countdown to automatically reset every day.
Thanks and best regards
Adding a daily-reset countdown timer to the Shopify announcement bar. The suggested approach: create a snippet named flash-sale-script.liquid, include it before in theme.liquid, then insert the timer markup into the announcement-bar section at the desired position.
The provided solution references specific code blocks and an image preview; the code content is central but not visible in this excerpt. The countdown is intended to reset automatically each day (likely via JavaScript in the snippet).
Latest update: A user reports the instructions don’t work on the Dawn theme and requests testing on a fresh Dawn install or guidance on necessary changes. Compatibility with Dawn remains unconfirmed in the thread.
Status: No verified fix or confirmation of daily reset behavior yet. Open items: share the full working code, validate on a clean Dawn theme, and note any theme-specific adjustments required (e.g., section file names, script placement, or asset loading).
Hi,
can someone tell me how to add a countdown to the announcement bar? I would need the Countdown to automatically reset every day.
Thanks and best regards
Hi @Quincko
This is Victor from PageFly - Shopify Page Builder App
Please follow this guide to add the timer to your announcement bar
Online store > themes > Actions > Edit code > Snippets >
Create a new snippet name :
flash-sale-script.liquid
Paste code and save:
Then go to theme.liquid
Paste code before
{% include 'flash-sale-script' %}
Now you have the timer, and this is to use it in announcement bar
Online store > themes > Actions > Edit code > Sections > announcement-bar
Paste the code at the position you want (the timer is right after the announcement bar text)
Hope this can help you solve the issue
Best regards,
Victor | PageFly
Hi i’m trying to use this code. But i can’t seen to get it to work using Dawn theme.
Could you try it with a fresh dawn theme and share Any ideas on what I can try changing to fix?