Countdown Timer
Days/hours/minutes/seconds urgency block, pastes into Custom Liquid.
Live preview
See it in action.
Fully interactive, drag, click, scroll inside the frame, toggle to mobile.
About this block
A clean four-cell countdown timer with eyebrow, heading, and an 'ended' message that auto-shows when the deadline passes. Set the ISO deadline in one attribute. No app, no third-party SDK, runs on a single setInterval.
Install in 90 seconds
- 01
Open your Shopify admin and go to Online Store → Themes → Customize.
- 02
On any template, click "Add section" where you want the block to appear.
- 03
Choose "Custom Liquid" from the section list.
- 04
Paste the code from this page into the Custom Liquid setting and click Save.
- 05
Edit text and colors directly in the code (look for the comments marking edit points).
The code
In your Shopify theme editor, add a Custom Liquid section and paste the snippet below into its content field. You can change text, colors, and links right inside the code. Every editable spot is marked with an EDIT comment.
Unlock the block code
Countdown Timer is a premium block. Get the full Liquid + scoped CSS paste-ready.
One-time purchase · Lifetime updates · You own the code
What you can customize
Custom Liquid sections don't have visual theme editor settings, so changes happen directly in the code. Here's what to edit:
| What | How to edit |
|---|---|
| Deadline (ISO) | Set data-deadline="2026-12-25T00:00:00" on the .modblo-cd section. |
| Eyebrow | Find the value in the code and change it directly. |
| Heading | Find the value in the code and change it directly. |
| Ended message | Find the value in the code and change it directly. |
SEO and accessibility notes
- Deadline parsed as ISO date, timezone-aware via standard Date constructor.
- Falls back gracefully if the deadline string is invalid (block stays on initial 00 values, no crash).
- Tabular-nums font feature keeps digit width stable as numbers tick.
- Self-cleans the setInterval when the deadline passes.
Related
