Countdown Announcement Bar
Live countdown bar with dismiss + CTA. Header-group ready.
Live preview
See it in action.
Fully interactive, drag, click, scroll inside the frame, toggle to mobile.
About this section
Top-of-page announcement with a real-time countdown to a configurable end date. Dismissed-state persists per visitor via localStorage. Lives in the header section group.
Install in 90 seconds
- 01
Create /sections/modblo-countdown-announcement.liquid.
- 02
Paste the code and save.
- 03
In the theme editor, add it to the Header section group at the top.
The code
This is the file you'll paste into your theme.
What you can customize
Every setting below shows up in the Shopify theme editor. Change them without touching code.
| Setting | Type | Default |
|---|---|---|
Message message | Text | , |
End date (YYYY-MM-DD) end_date | Text | , |
End time (HH:MM) end_time | Text | , |
CTA label cta_label | Text | , |
CTA link cta_link | Link | , |
Allow dismiss dismissible | Yes/No | , |
Background bg | Color picker | , |
Foreground fg | Color picker | , |
CTA color accent | Color picker | , |
SEO and accessibility notes
- aria-live='polite' on the timer announces updates without interrupting screen readers.
- Hidden state uses the [hidden] attribute, not display:none style mutations.
Related
