Documentation

Add the Subscribe Widget to WordPress

Three ways to embed the Subscribeam newsletter widget in WordPress — the block editor, a widget area, or a theme template.

WordPress gives you a few places to drop the Subscribeam embed widget. All of them use the same one-line <iframe> snippet you copied from the Embed Widget quick start — pick whichever location fits where you want the form to appear.

Option 1: The block editor (recommended)

This is the simplest approach for a page or post:

  1. Edit the page or post where you want the form.
  2. Add a Custom HTML block (click the + button and search for “Custom HTML”).
  3. Paste your embed snippet into the block:
<iframe
  src="https://cdn.subscribeam.com/embed/<newsletter-id>.html"
  width="100%"
  height="200"
  style="border:none"
  title="Subscribe to our newsletter"
></iframe>

Click Preview to confirm it renders, then update or publish. Done.

Option 2: A sidebar or footer widget area

To show the form site-wide in a sidebar or footer:

  1. Go to Appearance → Widgets (or the Customizer's Widgets panel).
  2. Add a Custom HTML widget to the widget area you want.
  3. Paste the same snippet and save.

Option 3: Directly in a theme template

If you maintain your own theme and want the form in a fixed location (say, below every post), paste the snippet into the relevant template file — for example single.php or a template part. If your theme supports block templates, the Custom HTML block from Option 1 works inside the Site Editor too.

Troubleshooting

  • The iframe doesn't appear. Some security plugins strip <iframe> tags from content. Check your plugin settings, or use the Custom HTML block/widget which is designed to allow embeds.
  • The form is cut off. Increase the height value, or enable auto-resize so the iframe grows to fit — see Auto-resize & events.
  • You're on WordPress.com. Custom HTML and iframes require a plan that allows them; the Business plan and above do.