PremiumNewFeaturedBlockPromo

Countdown Timer

Days/hours/minutes/seconds urgency block, pastes into Custom Liquid.

#countdown#timer#urgency#promo#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

  1. 01

    Open your Shopify admin and go to Online Store → Themes → Customize.

  2. 02

    On any template, click "Add section" where you want the block to appear.

  3. 03

    Choose "Custom Liquid" from the section list.

  4. 04

    Paste the code from this page into the Custom Liquid setting and click Save.

  5. 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:

WhatHow to edit
Deadline (ISO)Set data-deadline="2026-12-25T00:00:00" on the .modblo-cd section.
EyebrowFind the value in the code and change it directly.
HeadingFind the value in the code and change it directly.
Ended messageFind 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.