Marketing · Gutenberg

Lead Magnet block for WordPress

Free resource / lead magnet landing section. Features a mockup image (book, PDF, phone), headline, benefit checklist, and an email capture form with privacy note. Ideal for e-books, templates, checklists, and courses.

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

Free resource / lead magnet landing section. Features a mockup image (book, PDF, phone), headline, benefit checklist, and an email capture form with privacy note. Ideal for e-books, templates, checklists, and courses.

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

Behavior controls: “Layout” options: Image Right, Image Left, Centered; “Image Style” options: Floating (shadow), Book, Flat.

Where to find it

Gutenberg inserter → Marketing → search “Lead Magnet” (block name `blockenberg/lead-magnet` in block.json). Style it in the sidebar after insert.

How to use Lead Magnet block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Lead Magnet”, insert it. Category: Marketing.
  3. Configure inspector controls that exist on this block. Open Layout & Content. Set “Image Style”, “Show Badge”, “Show Benefits”, “Show Form”.
  4. 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

ControlWhat the code does
LayoutSelect control; the chosen value is saved on the block. Options: Image Right; Image Left; Centered. block.json default: image-right. Saved as `layout`.
Image StyleSelect control; the chosen value is saved on the block. Options: Floating (shadow); Book; Flat. block.json default: floating. Saved as `imageStyle`.
Show BadgeOn/off toggle in the inspector. On by default. Saved as `showBadge`.
Show BenefitsOn/off toggle in the inspector. On by default. Saved as `showBenefits`.
Show FormOn/off toggle in the inspector. On by default. Saved as `formEnabled`.
Form Action URL (optional)Text field in the inspector. Saved as `formAction`.
Show Privacy NoteOn/off toggle in the inspector. On by default. Saved as `showPrivacy`.
Max Width (px)Numeric range control in the inspector. Range 600–1400. block.json default: 1060. Saved as `maxWidth`.
Padding TopNumeric range control in the inspector. Range 0–160. block.json default: 80. Saved as `paddingTop`.
Padding BottomNumeric range control in the inspector. Range 0–160. block.json default: 80. Saved as `paddingBottom`.
Colors — BackgroundColor control in the inspector. block.json default: #f8f5ff. Saved as `bgColor`.
Badge BGColor control in the inspector. block.json default: #dcfce7. Saved as `badgeBg`.
Badge TextColor control in the inspector. block.json default: #166534. Saved as `badgeColor`.
HeadingColor control in the inspector. block.json default: #111827. Saved as `headingColor`.
SubtextColor control in the inspector. block.json default: #4b5563. Saved as `subtextColor`.
CheckmarkColor control in the inspector. block.json default: #7c3aed. Saved as `checkColor`.
CTA BGColor control in the inspector. block.json default: #7c3aed. Saved as `ctaBg`.
CTA TextColor control in the inspector. block.json default: #ffffff. Saved as `ctaColor`.
Privacy TextColor control in the inspector. block.json default: #9ca3af. Saved as `privacyColor`.

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 Lead Magnet block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Lead Magnet”. It sits under Marketing. After insert, open Layout & Content and set “Image Style”, “Show Badge”, “Show Benefits”, “Show Form”.

What makes Lead Magnet different from other Blockenberg blocks?

Free resource / lead magnet landing section. Features a mockup image (book, PDF, phone), headline, benefit checklist, and an email capture form with privacy note. Ideal for e-books, templates, checklists, and courses. Inspector labels on this block include “Image Style”, “Show Badge”, “Show Benefits”, “Show Form”.

Is the Lead Magnet Gutenberg block free?

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

Can I style Lead Magnet 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: Layout & Content).

Related marketing blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Lead Magnet from the Gutenberg inserter.

Get Blockenberg