Countdown Block

The Countdown block (aegis/countdown) displays an animated timer counting down to a target date and time.

Updated 3 min read Atmostfear Entertainment

Overview

Note

Provided by Aegis Dash. Since Aegis Dash 1.1.0 this block is registered by the plugin. It appears in the inserter once one of its settings is on at Aegis → Blocks → Countdown; there is no separate switch for the block itself. A site that already used the block through the Aegis theme has those settings turned on the first time Aegis Dash 1.1.0 loads. The theme only registers its own copy while Aegis Dash is not providing the block. Extras marked Pro need Aegis Pro.

Property Value
Block name aegis/countdown
Registered by Aegis Dash 1.1.0 or newer
Render Dynamic (render.php + view.js)
Requires Aegis Dash and the Aegis theme (Pro sub-features optional)

Key attributes

Attribute Type Default Description
datetime string "" Target date/time (ISO 8601)
showDays / showHours / showMinutes / showSeconds boolean true Visible time units
labels object Days, Hours, … Unit labels
separator string colon colon, dot, dash, or none
layout string inline inline or stacked
expiryMessage string "" Shown when countdown reaches zero
timezone string utc utc or local
schemaEnabled boolean false Event schema markup
schemaEventName / Description / Location / Url string "" Schema.org Event fields

Usage

Set the target date and time in the Countdown settings.

  1. Insert the Countdown block from the block inserter.
  2. Set Target date in the block sidebar.
  3. Toggle which units to display (days, hours, minutes, seconds).
  4. Customize labels, separator, and layout.
  5. Add an Expiry message for when the timer ends.
  6. Optionally enable Event schema for SEO.

Aegis → Blocks → Countdown

There is no parent Countdown toggle. Enabling any extra implies the block (same pattern as Related Posts and Slider). Without Aegis Dash (the theme’s own copy), all free extras behave as on.

Countdown options in Aegis → Blocks.

Extra Inspector Off fallback
countdown_segments Show Days / Hours / Minutes / Seconds all units on
countdown_labels Days / Hours / Minutes / Seconds labels default English labels
countdown_separator Separator colon
countdown_layout Layout inline
countdown_expiry_message Expiry Message empty (timer stays visible at zero)
countdown_timezone Timezone utc
countdown_schema Schema.org Event schema not output

The datetime picker stays available when the block is registered. Inspector extras are passed as window.aegisCountdownFeatures on the block editor script.

Pro sub-features

Aegis → Blocks → Countdown Pro extras (when Aegis Pro is licensed): evergreen timer, animation styles, auto-restart, expiry actions, and urgency styling. Each extra is gated like Map/Slider. The inspector reads window.aegisCountdownEditor.features.

See Aegis Dash Block Variations and Pro Block Extensions.

Developer notes

  • Source: src/Blocks/countdown/ — block.json, edit.tsx, view.ts, render.php
  • Registration: src/Blocks/BlockRegistrar.php — extras imply countdown
  • Inspector extras: window.aegisCountdownFeatures inlined on the registered editor script handle
  • Frontend animation runs in view.js; digits update on an interval
  • Compiled output: webpack writes index.js / view.js in place. block.json still points at file:style.css (no SCSS import yet, unlike Slider)

Next Steps

Was this article helpful?