FreeAnnouncement Bars
Countdown Announcement Bar
Live countdown bar with dismiss + CTA. Header-group ready.
#announcement-bar#countdown#urgency#header
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 Liquid
modblo-countdown-announcement.liquid
Theme editor settings
| 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 | url | , |
Allow dismiss dismissible | checkbox | , |
Background bg | color | , |
Foreground fg | color | , |
CTA color accent | color | , |
SEO & 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
