How to Embed Email Opt-In Forms Anywhere on Your WordPress Site

Embedding Opt-in Forms with Shortcodes, Blocks and Template Tags

Shortcode and template tag optin embed

Although it is possible to add, include or embed opt-in forms (a.k.a lead capture forms or email signup forms) anywhere on your site with page-level targeting. It doesn’t allow you to specify the exact position or section of your site it should display. This is where Shortcode, Block and Template-tag come in handy.

With shortcodes, you can embed opt-in forms at any position in your posts and pages. While with template-tags, you can embed optin forms anywhere in your WordPress theme template files so you can start saving leads to your accounts at MailChimp, Klaviyo, Campaign Monitor, Sendy, SendinBlue, AWeber, Constant Contact, ActiveCampaign, ConvertKit, MailerLite, Drip, GetResponse etc.

Note: shortcode and template-tag can only embed sidebar and before/after post forms.

Without further ado, let’s see how to use them.

Shortcodes Embed

Firstly, create a sidebar or before/after post form if you don’t have one created already.

At the form builder/customizer interface, Open Embed & Shortcode panel. There you will see the shortcode and template tag for the opt-in form.

To embed the opt-in form anywhere in any of your post or page, paste the shortcode where you want it shown and save.

Embed opt-in form in WordPress post and page with shortcode

Here is a live demo => https://mailoptin.io/embedded-forms/

WordPress Block

You can also embed or add your optin campaigns anywhere on a post or page content using our Gutenberg block.

Template Tag Embed

If you will want to embed it somewhere in your WordPress theme’s (template) PHP file; copy the template-tag code and paste it where you want it shown.

Template tag embed of optin form

It’s that easy.