How to Embed Email Opt-In Forms Anywhere in WordPress
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.
Without further ado, let’s see how to use them.
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.
Here is a live demo => https://mailoptin.io/embedded-forms/
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.
It’s that easy.