Marketing · Gutenberg

Offer Card block for WordPress

Special offer and deal card with urgency badge, original/sale price, includes list, CTA, and optional countdown timer.

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

Special offer and deal card with urgency badge, original/sale price, includes list, CTA, and optional countdown timer.

Inspector panels on this block: Badge & Pricing, Layout. Those titles come from index.js, not from a shared template.

Behavior controls: “Badge Style” options: 🔥 Hot, 💸 Sale, ⏳ Limited, ✨ New; “Card Layout” options: Card (stacked), Banner (side-by-side), Minimal.

Where to find it

Gutenberg inserter → Marketing → search “Offer Card” (block name `blockenberg/offer-card` in block.json). Style it in the sidebar after insert.

How to use Offer Card block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Offer Card”, insert it. Category: Marketing.
  3. Configure inspector controls that exist on this block. Open Badge & Pricing. Set “Countdown end (ISO date)”, “Show Badge”, “Badge Style”, “Show Price”.
  4. Check the published page. The view script reads HTML data attributes: data-opts. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
Countdown end (ISO date)Text field in the inspector. Saved as `countdownEnd`.
Show BadgeOn/off toggle in the inspector. On by default. Saved as `showBadge`.
Badge StyleSelect control; the chosen value is saved on the block. Options: 🔥 Hot; 💸 Sale; ⏳ Limited; ✨ New. block.json default: hot. Saved as `badgeStyle`.
Show PriceOn/off toggle in the inspector. On by default. Saved as `showPrice`.
Currency SymbolText field in the inspector. block.json default: $. Saved as `currency`.
Sale PriceText field in the inspector. block.json default: 197. Saved as `salePrice`.
Original Price (strikethrough)Text field in the inspector. block.json default: 497. Saved as `originalPrice`.
Show Countdown TimerOn/off toggle in the inspector. On by default. Saved as `showCountdown`.
Show Includes ListOn/off toggle in the inspector. On by default. Saved as `showIncludes`.
CTA LabelText field in the inspector. block.json default: Get instant access →. Saved as `ctaLabel`.
CTA URLText field in the inspector. block.json default: #. Saved as `ctaUrl`.
Open CTA in new tabOn/off toggle in the inspector. Off by default. Saved as `ctaOpenNewTab`.
Show DisclaimerOn/off toggle in the inspector. On by default. Saved as `showDisclaimer`.
Card LayoutSelect control; the chosen value is saved on the block. Options: Card (stacked); Banner (side-by-side); Minimal. block.json default: card. Saved as `layout`.
Border Radius (px)Numeric range control in the inspector. Range 0–32. block.json default: 16. Saved as `borderRadius`.
Max Width (px)Numeric range control in the inspector. Range 300–1400. block.json default: 540. Saved as `maxWidth`.
Padding Top (px)Numeric range control in the inspector. Range 0–160. block.json default: 64. Saved as `paddingTop`.
Padding Bottom (px)Numeric range control in the inspector. Range 0–160. block.json default: 64. Saved as `paddingBottom`.
Section BGColor control in the inspector. block.json default: #ffffff. Saved as `bgColor`.
Card BGColor control in the inspector. block.json default: #ffffff. Saved as `cardBg`.
Colors — BorderColor control in the inspector. block.json default: #e5e7eb. Saved as `borderColor`.
AccentColor control in the inspector. block.json default: #7c3aed. Saved as `accentColor`.
Badge BGColor control in the inspector. block.json default: #fef2f2. Saved as `badgeBg`.
Badge TextColor control in the inspector. block.json default: #b91c1c. Saved as `badgeColor`.
HeadingColor control in the inspector. block.json default: #111827. Saved as `headingColor`.
DescriptionColor control in the inspector. block.json default: #6b7280. Saved as `descColor`.
Sale PriceColor control in the inspector. block.json default: #111827. Saved as `priceColor`.
StrikethroughColor control in the inspector. block.json default: #9ca3af. Saved as `strikethroughColor`.
CTA BGColor control in the inspector. block.json default: #7c3aed. Saved as `ctaBg`.
CTA TextColor control in the inspector. block.json default: #ffffff. Saved as `ctaColor`.
CheckmarkColor control in the inspector. block.json default: #16a34a. Saved as `checkColor`.

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 Offer Card block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Offer Card”. It sits under Marketing. After insert, open Badge & Pricing and set “Countdown end (ISO date)”, “Show Badge”, “Badge Style”, “Show Price”.

What makes Offer Card different from other Blockenberg blocks?

Special offer and deal card with urgency badge, original/sale price, includes list, CTA, and optional countdown timer. Inspector labels on this block include “Countdown end (ISO date)”, “Show Badge”, “Badge Style”, “Show Price”.

Is the Offer Card Gutenberg block free?

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

Can I style Offer Card 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: Badge & Pricing, Layout).

Related marketing blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Offer Card from the Gutenberg inserter.

Get Blockenberg