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.
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
- Install Blockenberg. Install from WordPress.org and activate the plugin.
- Insert the block. Edit a page, click +, search for “Offer Card”, insert it. Category: Marketing.
- Configure inspector controls that exist on this block. Open Badge & Pricing. Set “Countdown end (ISO date)”, “Show Badge”, “Badge Style”, “Show Price”.
- 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
| Control | What the code does |
|---|---|
| Countdown end (ISO date) | Text field in the inspector. Saved as `countdownEnd`. |
| Show Badge | On/off toggle in the inspector. On by default. Saved as `showBadge`. |
| Badge Style | Select control; the chosen value is saved on the block. Options: 🔥 Hot; 💸 Sale; ⏳ Limited; ✨ New. block.json default: hot. Saved as `badgeStyle`. |
| Show Price | On/off toggle in the inspector. On by default. Saved as `showPrice`. |
| Currency Symbol | Text field in the inspector. block.json default: $. Saved as `currency`. |
| Sale Price | Text 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 Timer | On/off toggle in the inspector. On by default. Saved as `showCountdown`. |
| Show Includes List | On/off toggle in the inspector. On by default. Saved as `showIncludes`. |
| CTA Label | Text field in the inspector. block.json default: Get instant access →. Saved as `ctaLabel`. |
| CTA URL | Text field in the inspector. block.json default: #. Saved as `ctaUrl`. |
| Open CTA in new tab | On/off toggle in the inspector. Off by default. Saved as `ctaOpenNewTab`. |
| Show Disclaimer | On/off toggle in the inspector. On by default. Saved as `showDisclaimer`. |
| Card Layout | Select 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 BG | Color control in the inspector. block.json default: #ffffff. Saved as `bgColor`. |
| Card BG | Color control in the inspector. block.json default: #ffffff. Saved as `cardBg`. |
| Colors — Border | Color control in the inspector. block.json default: #e5e7eb. Saved as `borderColor`. |
| Accent | Color control in the inspector. block.json default: #7c3aed. Saved as `accentColor`. |
| Badge BG | Color control in the inspector. block.json default: #fef2f2. Saved as `badgeBg`. |
| Badge Text | Color control in the inspector. block.json default: #b91c1c. Saved as `badgeColor`. |
| Heading | Color control in the inspector. block.json default: #111827. Saved as `headingColor`. |
| Description | Color control in the inspector. block.json default: #6b7280. Saved as `descColor`. |
| Sale Price | Color control in the inspector. block.json default: #111827. Saved as `priceColor`. |
| Strikethrough | Color control in the inspector. block.json default: #9ca3af. Saved as `strikethroughColor`. |
| CTA BG | Color control in the inspector. block.json default: #7c3aed. Saved as `ctaBg`. |
| CTA Text | Color control in the inspector. block.json default: #ffffff. Saved as `ctaColor`. |
| Checkmark | Color control in the inspector. block.json default: #16a34a. Saved as `checkColor`. |
What the front-end script actually does
- The view script reads HTML data attributes: data-opts.
When this is the right block
- Special offer and deal card with urgency badge, original/sale price, includes list, CTA, and optional countdown timer — that is the job of Offer Card, not a generic content block.
- Use it when you need the editor control labeled “Countdown end (ISO date)”, which exists on this block’s inspector.
- It matches pages about offer, deal, sale.
- Inserter grouping: landing pages, campaign sections, and conversion layouts.
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
CTA with Countdown
Urgency-driven CTA section with a live countdown timer, headline, and call-to-action buttons.
Coupon
Eye-catching promo/discount coupon card with copyable code, expiry countdown, and flexible styling.
Pricing Table
Pricing card with plan name, price, features list, and CTA button. Highlight popular plans with a badge.
Product Card
Showcase any product with image, name, price, star rating, features list, badges, and buy button — no WooCommerce required.
Promo Banner
Dismissible announcement ribbon with message, link/button, gradient background and cookie memory.
Announcement Strip
A thin dismissible announcement bar — ideal above the site header for promotions, launches, or alerts.
Get Blockenberg
Install Blockenberg from WordPress.org, then insert Offer Card from the Gutenberg inserter.