Marketing · Gutenberg

CTA with Countdown block for WordPress

Urgency-driven CTA section with a live countdown timer, headline, and call-to-action buttons.

Get Blockenberg

Free Gutenberg block in Blockenberg. The inspector controls and front-end behavior on this page come from this block’s source, not a shared stub.

Get Blockenberg

What it actually does

Urgency-driven CTA section with a live countdown timer, headline, and call-to-action buttons.

Inspector panels on this block: Content, CTA Buttons, Countdown Timer, Style & Layout. Those titles come from index.js, not from a shared template.

Behavior controls: “Style & Layout — Style” options: Dark, Light, Gradient, Banner; “Layout” options: Centered, Split; “Timer Style” options: Box, Minimal, Outlined.

Where to find it

Gutenberg inserter → Marketing → search “CTA with Countdown” (block name `blockenberg/cta-countdown` in block.json). Style it in the sidebar after insert.

How to use CTA with Countdown block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “CTA with Countdown”, insert it. Category: Marketing.
  3. Configure inspector controls that exist on this block. Open Content. Set “Show Eyebrow”, “Eyebrow Text”, “Show Subheading”, “Primary Button Text”.
  4. Check the published page. The view script reads HTML data attributes: data-days, data-end, data-relative, data-unit. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
Show EyebrowOn/off toggle in the inspector. On by default. Saved as `showEyebrow`.
Eyebrow TextText field in the inspector. block.json default: Limited Time Offer. Saved as `eyebrow`.
Show SubheadingOn/off toggle in the inspector. On by default. Saved as `showSubheading`.
Primary Button TextText field in the inspector. block.json default: Claim Your Discount. Saved as `ctaText`.
Primary Button URLText field in the inspector. block.json default: #. Saved as `ctaUrl`.
Show Secondary ButtonOn/off toggle in the inspector. On by default. Saved as `showSecondaryCta`.
Secondary Button TextText field in the inspector. block.json default: Learn More. Saved as `ctaSecondaryText`.
Secondary Button URLText field in the inspector. block.json default: #. Saved as `ctaSecondaryUrl`.
Use Relative Time (days from now)On/off toggle in the inspector. On by default. Saved as `useRelative`.
Days from NowNumeric range control in the inspector. Range 0–365. block.json default: 3. Saved as `daysFromNow`.
End Date (ISO format)Text field in the inspector. Saved as `endDate`.
DaysOn/off toggle in the inspector. On by default. Saved as `showDays`.
HoursOn/off toggle in the inspector. On by default. Saved as `showHours`.
MinutesOn/off toggle in the inspector. On by default. Saved as `showMinutes`.
SecondsOn/off toggle in the inspector. On by default. Saved as `showSeconds`.
Show LabelsOn/off toggle in the inspector. On by default. Saved as `showLabels`.
Days LabelText field in the inspector. block.json default: Days. Saved as `labelDays`.
Hours LabelText field in the inspector. block.json default: Hours. Saved as `labelHours`.
Minutes LabelText field in the inspector. block.json default: Min. Saved as `labelMinutes`.
Seconds LabelText field in the inspector. block.json default: Sec. Saved as `labelSeconds`.
Style & Layout — StyleSelect control; the chosen value is saved on the block. Options: Dark; Light; Gradient; Banner. block.json default: dark. Saved as `style`.
LayoutSelect control; the chosen value is saved on the block. Options: Centered; Split. block.json default: centered. Saved as `layout`.
Timer StyleSelect control; the chosen value is saved on the block. Options: Box; Minimal; Outlined. block.json default: box. Saved as `timerStyle`.
Border RadiusNumeric range control in the inspector. Range 0–48. block.json default: 16. Saved as `borderRadius`.
Timer GapNumeric range control in the inspector. Range 4–32. block.json default: 12. Saved as `timerGap`.
Button RadiusNumeric range control in the inspector. Range 0–99. block.json default: 8. Saved as `buttonRadius`.
HeadingShared Blockenberg typography popover (family, size, weight, spacing). Saved as `typoHeading`.
SubheadingShared Blockenberg typography popover (family, size, weight, spacing). Saved as `typoSub`.
EyebrowShared Blockenberg typography popover (family, size, weight, spacing). Saved as `typoEyebrow`.
Timer NumberShared Blockenberg typography popover (family, size, weight, spacing). Saved as `typoNumber`.
Timer Label SizeNumeric range control in the inspector. Range 9–18. block.json default: 12. Saved as `labelSize`.
Button Font SizeNumeric range control in the inspector. Range 12–24. block.json default: 16. Saved as `buttonSize`.
Padding TopNumeric range control in the inspector. Range 0–240. block.json default: 80. Saved as `paddingTop`.
Padding BottomNumeric range control in the inspector. Range 0–240. block.json default: 80. Saved as `paddingBottom`.
Colors — BackgroundColor control in the inspector. block.json default: #0f172a. Saved as `bgColor`.
AccentColor control in the inspector. block.json default: #6c3fb5. Saved as `accentColor`.
Heading ColorColor control in the inspector. block.json default: #ffffff. Saved as `headingColor`.
Subheading ColorColor control in the inspector. block.json default: rgba(255,255,255,0.7). Saved as `subColor`.
Eyebrow ColorColor control in the inspector. block.json default: #a78bfa. Saved as `eyebrowColor`.
Timer Box BackgroundColor control in the inspector. block.json default: rgba(255,255,255,0.08). Saved as `timerBg`.
Timer Box BorderColor control in the inspector. block.json default: rgba(255,255,255,0.12). Saved as `timerBorder`.
Timer Number ColorColor control in the inspector. block.json default: #ffffff. Saved as `timerNumColor`.
Timer Label ColorColor control in the inspector. block.json default: rgba(255,255,255,0.5). Saved as `timerLabelColor`.
Primary Button BGColor control in the inspector. block.json default: #6c3fb5. Saved as `btnBg`.
Primary Button TextColor control in the inspector. block.json default: #ffffff. Saved as `btnText`.
Secondary Button TextColor control in the inspector. block.json default: #ffffff. Saved as `btn2Text`.

What the front-end script actually does

When this is the right block

Notes from the implementation

viewScript: this folder’s frontend.js is enqueued on the front end for this block.

FAQ

How do I add the CTA with Countdown block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “CTA with Countdown”. It sits under Marketing. After insert, open Content and set “Show Eyebrow”, “Eyebrow Text”, “Show Subheading”, “Primary Button Text”.

What makes CTA with Countdown different from other Blockenberg blocks?

Urgency-driven CTA section with a live countdown timer, headline, and call-to-action buttons. Inspector labels on this block include “Show Eyebrow”, “Eyebrow Text”, “Show Subheading”, “Primary Button Text”.

Is the CTA with Countdown Gutenberg block free?

Yes. CTA with Countdown ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.

Can I style CTA with Countdown to match my theme?

Yes. Blockenberg’s shared typography and color panels apply here, plus any block-specific style controls listed on this page (panels: Content, CTA Buttons, Countdown Timer, Style & Layout).

Related marketing blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert CTA with Countdown from the Gutenberg inserter.

Get Blockenberg