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.

Get Blockenberg

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

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “CTA Band”, insert it. Category: Marketing.
  3. Configure inspector controls that exist on this block. Open Content. Set “Button Label”, “Button URL”, “Open in New Tab”, “Content Alignment”.
  4. Publish. Save the page. Output is the saved block HTML; typography/colors follow Blockenberg shared panels.

Inspector controls from this block’s code

ControlWhat the code does
Button LabelText field in the inspector. block.json default: Get Started. Saved as `btnLabel`.
Button URLText field in the inspector. block.json default: #. Saved as `btnUrl`.
Open in New TabOn/off toggle in the inspector. Off by default. Saved as `btnNewTab`.
Content AlignmentSelect control; the chosen value is saved on the block. Options: Center; Text left, Btn right. block.json default: center. Saved as `layout`.
Gradient BackgroundOn/off toggle in the inspector. On by default. Saved as `useGradient`.
HeadlineShared Blockenberg typography popover (family, size, weight, spacing). Saved as `typoHeadline`.
SubtextShared 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 StartColor control in the inspector. block.json default: #1a73e8. Saved as `bgColor`.
Gradient EndColor control in the inspector. block.json default: #0d47a1. Saved as `bgColor2`.
Colors — TextColor control in the inspector. block.json default: #ffffff. Saved as `textColor`.
Button BackgroundColor control in the inspector. block.json default: #ffffff. Saved as `btnBg`.
Button TextColor control in the inspector. block.json default: #1a73e8. Saved as `btnText`.

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 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

Get Blockenberg

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

Get Blockenberg