Marketing · Gutenberg

Content Upgrade block for WordPress

In-article content upgrade / lead magnet box with opt-in form. Goes between article paragraphs to capture emails in exchange for a bonus resource.

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

In-article content upgrade / lead magnet box with opt-in form. Goes between article paragraphs to capture emails in exchange for a bonus resource.

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

Behavior controls: “Content — Style” options: Boxed, Inline (no border), Minimal (left accent bar).

Where to find it

Gutenberg inserter → Marketing → search “Content Upgrade” (block name `blockenberg/content-upgrade` in block.json). Style it in the sidebar after insert.

How to use Content Upgrade block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Content Upgrade”, insert it. Category: Marketing.
  3. Configure inspector controls that exist on this block. Open Content. Set “Content — Style”, “Form Placeholder”, “Submit Button Label”, “Form Action URL”.
  4. Check the published page. The view script reads HTML data attributes: data-opts, data-rendered. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
Content — StyleSelect control; the chosen value is saved on the block. Options: Boxed; Inline (no border); Minimal (left accent bar). block.json default: boxed. Saved as `style`.
Form PlaceholderText field in the inspector. block.json default: Enter your email address. Saved as `formPlaceholder`.
Submit Button LabelText field in the inspector. block.json default: Send Me the Checklist. Saved as `formSubmitLabel`.
Form Action URLText field in the inspector. block.json default: #. Saved as `formAction`.
Success MessageMultiline text field in the inspector. block.json default: 🎉 Check your inbox! The download is on its way.. Saved as `successMessage`.
Padding TopNumeric range control in the inspector. Range 0–120. block.json default: 40. Saved as `paddingTop`.
Padding BottomNumeric range control in the inspector. Range 0–120. block.json default: 40. Saved as `paddingBottom`.
Border RadiusNumeric range control in the inspector. Range 0–32. block.json default: 12. Saved as `borderRadius`.
Colors — BackgroundColor control in the inspector. block.json default: #f5f3ff. Saved as `bgColor`.
Colors — BorderColor control in the inspector. block.json default: #ddd6fe. Saved as `borderColor`.
AccentColor control in the inspector. block.json default: #6366f1. Saved as `accentColor`.
HeadingColor control in the inspector. block.json default: #1e1b4b. Saved as `headingColor`.
DescriptionColor control in the inspector. block.json default: #4b5563. Saved as `descColor`.
Input BackgroundColor control in the inspector. block.json default: #ffffff. Saved as `inputBg`.
Input BorderColor control in the inspector. block.json default: #d1d5db. Saved as `inputBorder`.
Input TextColor control in the inspector. block.json default: #111827. Saved as `inputColor`.
Submit ButtonColor control in the inspector. block.json default: #6366f1. Saved as `submitBg`.
Submit TextColor control in the inspector. block.json default: #ffffff. Saved as `submitColor`.

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 Content Upgrade block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Content Upgrade”. It sits under Marketing. After insert, open Content and set “Content — Style”, “Form Placeholder”, “Submit Button Label”, “Form Action URL”.

What makes Content Upgrade different from other Blockenberg blocks?

In-article content upgrade / lead magnet box with opt-in form. Goes between article paragraphs to capture emails in exchange for a bonus resource. Inspector labels on this block include “Content — Style”, “Form Placeholder”, “Submit Button Label”, “Form Action URL”.

Is the Content Upgrade Gutenberg block free?

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

Can I style Content Upgrade 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, Image).

Related marketing blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Content Upgrade from the Gutenberg inserter.

Get Blockenberg