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

Paste the snippet below into the Custom Liquid setting on a Custom Liquid section in your Theme Editor. Edit text, colors, and links directly in 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 expose theme-editor settings, so customization happens 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 & 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.
Countdown Timer. Shopify block | modblo