Marketing · Gutenberg
CTA Band block for WordPress
Full-width colored band with headline, supporting text and a call-to-action button.
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
Full-width colored band with headline, supporting text and a call-to-action button.
Inspector panels on this block: Content, Layout, Appearance. Those titles come from index.js, not from a shared template.
Behavior controls: “Content Alignment” options: Center, Text left, Btn right.
CTA Band has no render.php and no frontend.js. The saved Gutenberg HTML is what visitors see, plus Blockenberg layout/typography CSS.
Where to find it
Gutenberg inserter → Marketing → search “CTA Band” (block name `blockenberg/cta-band` in block.json). Style it in the sidebar after insert.
How to use CTA Band block for WordPress
- Install Blockenberg. Install from WordPress.org and activate the plugin.
- Insert the block. Edit a page, click +, search for “CTA Band”, insert it. Category: Marketing.
- Configure inspector controls that exist on this block. Open Content. Set “Button Label”, “Button URL”, “Open in New Tab”, “Content Alignment”.
- Publish. Save the page. Output is the saved block HTML; typography/colors follow Blockenberg shared panels.
Inspector controls from this block’s code
| Control | What the code does |
|---|---|
| Button Label | Text field in the inspector. block.json default: Get Started. Saved as `btnLabel`. |
| Button URL | Text field in the inspector. block.json default: #. Saved as `btnUrl`. |
| Open in New Tab | On/off toggle in the inspector. Off by default. Saved as `btnNewTab`. |
| Content Alignment | Select control; the chosen value is saved on the block. Options: Center; Text left, Btn right. block.json default: center. Saved as `layout`. |
| Gradient Background | On/off toggle in the inspector. On by default. Saved as `useGradient`. |
| Headline | Shared Blockenberg typography popover (family, size, weight, spacing). Saved as `typoHeadline`. |
| Subtext | Shared Blockenberg typography popover (family, size, weight, spacing). Saved as `typoSubtext`. |
| Vertical Padding (px) | Numeric range control in the inspector. Range 20–120. block.json default: 60. Saved as `paddingV`. |
| Horizontal Padding (px) | Numeric range control in the inspector. Range 16–100. block.json default: 40. Saved as `paddingH`. |
| Button Border Radius (px) | Numeric range control in the inspector. Range 0–40. block.json default: 6. Saved as `btnRadius`. |
| Background / Gradient Start | Color control in the inspector. block.json default: #1a73e8. Saved as `bgColor`. |
| Gradient End | Color control in the inspector. block.json default: #0d47a1. Saved as `bgColor2`. |
| Colors — Text | Color control in the inspector. block.json default: #ffffff. Saved as `textColor`. |
| Button Background | Color control in the inspector. block.json default: #ffffff. Saved as `btnBg`. |
| Button Text | Color control in the inspector. block.json default: #1a73e8. Saved as `btnText`. |
When this is the right block
- Full-width colored band with headline, supporting text and a call-to-action button — that is the job of CTA Band, not a generic content block.
- Use it when you need the editor control labeled “Button Label”, which exists on this block’s inspector.
- It matches pages about cta, band, banner.
- 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 CTA Band block in WordPress?
Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “CTA Band”. It sits under Marketing. After insert, open Content and set “Button Label”, “Button URL”, “Open in New Tab”, “Content Alignment”.
What makes CTA Band different from other Blockenberg blocks?
Full-width colored band with headline, supporting text and a call-to-action button. Inspector labels on this block include “Button Label”, “Button URL”, “Open in New Tab”, “Content Alignment”.
Is the CTA Band Gutenberg block free?
Yes. CTA Band ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.
Can I style CTA Band 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, Layout, Appearance).
Related marketing blocks
Call to Action
Headline + sub-headline + 1-2 buttons with optional color/gradient background. Perfect inside Row/Column blocks.
CTA Pulsing Button
An animated Call-to-Action button with pulsing ring/glow effects, rich typography, hover colors, icon, badge, and subtext controls.
Floating CTA
Fixed-position floating call-to-action button that sticks during scroll. Configurable position, icon, label, and trigger delay.
Gradient CTA
A bold full-width call-to-action section with a gradient or solid background, headline, subtitle, and buttons.
Button Group
Group of styled CTA buttons with alignment, spacing, individual per-button overrides, and responsive stacking.
Card CTA Grid
A grid of action cards — each with icon, title, description and link. Perfect for get-started, help, or navigation sections.
Get Blockenberg
Install Blockenberg from WordPress.org, then insert CTA Band from the Gutenberg inserter.