Step by step in the theme editor
- In Shopify admin, go to Online Store > Themes and click Customize on your theme.
- Open the page template where the countdown should appear (home page, a product, a collection).
- Click Add section and choose Custom Liquid. Most recent themes, such as Dawn, include it. Some themes also offer a Custom Liquid block inside a section.
- Paste the code in the Liquid field and click Save.
Honest countdowns only
A countdown should end when something really ends: a sale, a preorder window, the last day for delivery before Christmas. Timers that reset for each visitor to create false urgency are not just bad manners. In the European Union, falsely stating that a product will only be available for a very limited time is one of the commercial practices banned in all circumstances (Unfair Commercial Practices Directive, Annex I, point 7). This widget counts down to one fixed date, the same for every visitor, which is what an honest offer needs.
Settings that suit a store
| Use | Settings |
|---|---|
| End of a sale | Your time zone, days to minutes, message “The sale is over” |
| Last day for Christmas delivery | Your time zone, days only |
| Product drop | Your time zone, days to seconds, message “Available now” |
When the date passes, the widget shows your message. Remember to remove the section once the offer is over.