Marketing · Gutenberg

Newsletter Popup block for WordPress

Email capture popup that triggers on scroll, time delay, or exit intent. Cookie-based dismissal, image support, and success state.

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

Email capture popup that triggers on scroll, time delay, or exit intent. Cookie-based dismissal, image support, and success state.

Inspector panels on this block: Content, Email Form, Decorative Image, Trigger, Behaviour, Appearance. Those titles come from index.js, not from a shared template.

Behavior controls: “Image position” options: No image, Top banner, Left side, Right side; “Trigger type” options: Time delay, Scroll depth, Both (delay + scroll); “Cookie name” (Unique key to remember dismissed state. Change to re-show to returning visitors).

Where to find it

Gutenberg inserter → Marketing → search “Newsletter Popup” (block name `blockenberg/newsletter-popup` in block.json). Style it in the sidebar after insert.

How to use Newsletter Popup block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Newsletter Popup”, insert it. Category: Marketing.
  3. Configure inspector controls that exist on this block. Open Content. Set “Heading”, “Input placeholder”, “Button label”, “Success message”.
  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
HeadingText field in the inspector. block.json default: Don't miss out! 🎁. Saved as `heading`.
Input placeholderText field in the inspector. block.json default: Enter your email address. Saved as `emailPlaceholder`.
Button labelText field in the inspector. block.json default: Subscribe Now. Saved as `buttonLabel`.
Success messageText field in the inspector. block.json default: 🎉 You're in! Check your inbox for a welcome email.. Saved as `successMessage`.
Success sub-messageText field in the inspector. block.json default: You can unsubscribe at any time.. Saved as `successSubtext`.
Image positionSelect control; the chosen value is saved on the block. Options: No image; Top banner; Left side; Right side. block.json default: none. Saved as `imagePosition`.
Trigger typeSelect control; the chosen value is saved on the block. Options: Time delay; Scroll depth; Both (delay + scroll). block.json default: delay. Saved as `triggerType`.
Delay (seconds)Numeric range control in the inspector. Range 1–60. block.json default: 5. Saved as `delaySeconds`.
Scroll depth (%)Numeric range control in the inspector. Range 5–95. block.json default: 40. Saved as `scrollPercent`.
Also trigger on exit intent (mobile: 15s)On/off toggle in the inspector. Off by default. Saved as `exitIntent`.
Cookie nameText field in the inspector. Unique key to remember dismissed state. Change to re-show to returning visitors. block.json default: bkbg-nlpop. Saved as `cookieName`.
Suppress for (days)Numeric range control in the inspector. Range 0–365. block.json default: 7. Saved as `cookieDays`.
Show close buttonOn/off toggle in the inspector. On by default. Saved as `showClose`.
Close on overlay clickOn/off toggle in the inspector. On by default. Saved as `overlayClickClose`.
Max width (px)Numeric range control in the inspector. Range 300–900. block.json default: 520. Saved as `maxWidth`.
Border radius (px)Numeric range control in the inspector. Range 0–40. block.json default: 16. Saved as `borderRadius`.
Padding (px)Numeric range control in the inspector. Range 12–80. block.json default: 40. Saved as `padding`.
Overlay opacity (%)Numeric range control in the inspector. Range 0–95. block.json default: 60. Saved as `overlayOpacity`.
CTA Button Font SizeNumeric range control in the inspector. Range 10–28. block.json default: 15. Saved as `ctaSize`.
Overlay backgroundColor control in the inspector. block.json default: #000000. Saved as `overlayBg`.
Popup backgroundColor control in the inspector. block.json default: #ffffff. Saved as `popupBg`.
Heading colorColor control in the inspector. block.json default: #111827. Saved as `headingColor`.
Body text colorColor control in the inspector. block.json default: #6b7280. Saved as `textColor`.
Input backgroundColor control in the inspector. block.json default: #f9fafb. Saved as `inputBg`.
Input borderColor control in the inspector. block.json default: #d1d5db. Saved as `inputBorder`.
Input text colorColor control in the inspector. block.json default: #374151. Saved as `inputColor`.
Button backgroundColor control in the inspector. block.json default: #6366f1. Saved as `buttonBg`.
Button text colorColor control in the inspector. block.json default: #ffffff. Saved as `buttonColor`.
Close button backgroundColor control in the inspector. block.json default: #f3f4f6. Saved as `closeBg`.
Close button colorColor control in the inspector. block.json default: #6b7280. Saved as `closeColor`.

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 Newsletter Popup block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Newsletter Popup”. It sits under Marketing. After insert, open Content and set “Heading”, “Input placeholder”, “Button label”, “Success message”.

Where does Newsletter Popup store visitor state?

In localStorage on that browser. Clearing site data resets it. It is not a WordPress user meta field unless render.php says so.

Is the Newsletter Popup Gutenberg block free?

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

Can I style Newsletter Popup 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, Email Form, Decorative Image, Trigger).

Related marketing blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Newsletter Popup from the Gutenberg inserter.

Get Blockenberg