Marketing · Gutenberg

Gradient CTA block for WordPress

A bold full-width call-to-action section with a gradient or solid background, headline, subtitle, and 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

A bold full-width call-to-action section with a gradient or solid background, headline, subtitle, and buttons.

Inspector panels on this block: Content. Those titles come from index.js, not from a shared template.

Behavior controls: “Primary target” options: Same tab, New tab; “Secondary target” options: Same tab, New tab; “Gradient preset” options: Purple, Ocean (blue), Sunset, Dark, Forest (green); “Pattern type” options: Dots, Grid, Noise.

Gradient CTA 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 “Gradient CTA” (block name `blockenberg/gradient-cta` in block.json). Style it in the sidebar after insert.

How to use Gradient CTA block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Gradient CTA”, insert it. Category: Marketing.
  3. Configure inspector controls that exist on this block. Open Content. Set “Show badge”, “Badge text”, “Show subtitle”, “Primary button label”.
  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
Show badgeOn/off toggle in the inspector. On by default. Saved as `showBadge`.
Badge textText field in the inspector. block.json default: Join 10,000+ teams. Saved as `badge`.
Show subtitleOn/off toggle in the inspector. On by default. Saved as `showSubtitle`.
Primary button labelText field in the inspector. block.json default: Start for free. Saved as `primaryLabel`.
Primary button URLText field in the inspector. block.json default: #. Saved as `primaryUrl`.
Primary targetSelect control; the chosen value is saved on the block. Options: Same tab; New tab. block.json default: _self. Saved as `primaryTarget`.
Show secondary buttonOn/off toggle in the inspector. On by default. Saved as `showSecondary`.
Secondary labelText field in the inspector. block.json default: See how it works →. Saved as `secondaryLabel`.
Secondary URLText field in the inspector. block.json default: #. Saved as `secondaryUrl`.
Secondary targetSelect control; the chosen value is saved on the block. Options: Same tab; New tab. block.json default: _self. Saved as `secondaryTarget`.
Gradient presetSelect control; the chosen value is saved on the block. Options: Purple; Ocean (blue); Sunset; Dark; Forest (green); Rose (red); Custom CSS. block.json default: purple. Saved as `preset`.
Show pattern overlayOn/off toggle in the inspector. On by default. Saved as `showPattern`.
Pattern typeSelect control; the chosen value is saved on the block. Options: Dots; Grid; Noise. block.json default: dots. Saved as `patternType`.
Text alignSelect control; the chosen value is saved on the block. Options: Center; Left. block.json default: center. Saved as `textAlign`.
Content max width (px)Numeric range control in the inspector. Range 400–960. block.json default: 680. Saved as `contentMaxWidth`.
HeadlineShared Blockenberg typography popover (family, size, weight, spacing). Saved as `typoHeadline`.
SubtitleShared Blockenberg typography popover (family, size, weight, spacing). Saved as `typoSubtitle`.
BadgeShared Blockenberg typography popover (family, size, weight, spacing). Saved as `typoBadge`.
Padding top (px)Numeric range control in the inspector. Range 0–200. block.json default: 96. Saved as `paddingTop`.
Padding bottom (px)Numeric range control in the inspector. Range 0–200. block.json default: 96. Saved as `paddingBottom`.
Button radius (px)Numeric range control in the inspector. Range 0–50. block.json default: 50. Saved as `btnRadius`.
HeadlineColor control in the inspector. block.json default: #ffffff. Saved as `headlineColor`.
SubtitleColor control in the inspector. block.json default: rgba(255,255,255,0.82). Saved as `subtitleColor`.
Badge bgColor control in the inspector. block.json default: rgba(255,255,255,0.18). Saved as `badgeBg`.
Badge textColor control in the inspector. block.json default: #ffffff. Saved as `badgeColor`.
Primary button bgColor control in the inspector. block.json default: #ffffff. Saved as `primaryBg`.
Primary button textColor control in the inspector. block.json default: #6c3fb5. Saved as `primaryColor`.
Secondary button textColor control in the inspector. block.json default: rgba(255,255,255,0.85). Saved as `secondaryColor`.

When this is the right block

Notes from the implementation

Static block: markup is saved in post content; no PHP render callback in this folder.

FAQ

How do I add the Gradient CTA block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Gradient CTA”. It sits under Marketing. After insert, open Content and set “Show badge”, “Badge text”, “Show subtitle”, “Primary button label”.

What makes Gradient CTA different from other Blockenberg blocks?

A bold full-width call-to-action section with a gradient or solid background, headline, subtitle, and buttons. Inspector labels on this block include “Show badge”, “Badge text”, “Show subtitle”, “Primary button label”.

Is the Gradient CTA Gutenberg block free?

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

Can I style Gradient CTA 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).

Related marketing blocks

Get Blockenberg

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

Get Blockenberg