The HTML code for a embedded email opti-im form within Mailchimp.

Creating an Email Opt-in Form on Your WordPress Website

This post shows in some detail how to create (find is really more accurate) the email opt-in HTML code within your email marketing service (MailChimp is used in this example), and how to embed that code into your WordPress website.

NOTE: To enlarge any of the images below, double click within the image

Step 1: Create or Find the HTML Code for the Embedded Form

Every email marketing service has a similar function and while this example shows the detail only for Mailchimp, the concept is the same for all of them. You’ve created a list, and somewhere in your email marketing account you have the ability to create lists, and opt-in forms are associated with your lists.

In MailChimp you find the HTML code by navigating as follows: Lists -> Choose the Target List -> Signup Forms -> Embedded forms (Select button on the right of the screen). At this point you have a few options, but independent of which options you select, you’ll find the HTML code you need to copy, then paste into the website.

The HTML code for a embedded email opti-im form within Mailchimp.

Email Optin HTML Code









Step 2: Embed the HTML Code Into a Sidebar Text Widget

Within your WordPress website you navigate to this via Appearance -> Widgets. You then find the Widget Area for the sidebar, move a Text widget into that widget areaand paste the HTML code into that widget area. Don’t forget to select Save when you’re done.

Paste the HTML code for the embedded email opt-in form into a text widget in the widget area for the sidebar.

Paste HTML Code









Step 3: Confirm the Sidebar Opt-In Form Looks Right

You do this by looking at the blog (or a single blog post) and verifying the form looks right. You should also test the form to verify your contact information is properly entered onto the email list.

Verify the email opt-in box displayed in the WordPress sidebar both looks right and works right.

Does it look right? Does it work?









Step 4: Create a WordPress Page Containing the Email Opt-In Form

Create a new WordPress page, give it a name that is something like “Join our Mailing List” (or whatever works for you) and using the Text view within the WordPress editor, paste the HTML code for the email list opt-in box onto the WordPress page.

Paste the email list opt-in list HTML code into the Text view of the WordPress page editor.

Paste HTML into WordPress page









Step 5: Verify the Email Opt-In Form Displays Properly in the Visual Tab of the WordPress Editor

Before publishing the page and leaving the WordPress editor, switch to the Visual tab of the WordPress editor and verify the opt-in form displays properly within the WordPress page.

Verify the visual display of the email opt-in form is good within the Visual tab of the WordPress editor

Verify Display is Good in Visual Tab









Step 6: View the Page with the Form on Your WordPress Website

Open the WordPress page containing the email list opt-in form from “outside” your website to verify that it both looks right, and works. For the image below, ignore that there is one opt-in form on the page and another opt-in form in the sidebar. On your live website you won’t do that, but for this tutorial it’s fine.

Open the WordPress page and view it as any website visitor will. Verify the email list opt-in form both looks correct and works correctly.

Does it look right? Does it work?









Step 7: Create a Button that Loads that Page When Selected

How you do this on your WordPress site will vary. Maybe your theme has a good way of creating buttons. Maybe you use a WordPress plugin. The screenshot below shows a button that has been created with the MaxButtons WordPress plugin.

The main idea here is at appropriate places on your website (maybe at the end of blog posts, maybe on landing pages) you place a visually obvious button in which you suggest to people that they join your email list.

When they select the button, the page you built containing the email opt-in form loads.

Create a visually pleasing button which when selected loads the WordPress page containing the email list opt-in box

Big Obvious Button









Learn How to Attract Your Crowd to Your Website

Download the eBook: The 7 Fundamentals of Being Found Online



Related Posts

How to use analytics to improve your email marketing campaigns With around 250 billion emails being sent every day, how do you get yours to stand out from the crowd.   You write good subject lines. You ...
How to get people click your email and read the content It’s said that you don’t have a second chance to make a first impression. With email marketing, your subject line is the first impression and therefor...
How to measure your email marketing success. Small business marketing With so many business competing for the limited consumers available, a small business that uses email marketing to send out high-quality and relevant ...
How to build trust and a strong relationship with your customers Have you ever worried how email marketing boosts small businesses? Worry no more…. Email marketing increases sales in your small business By spr...
Open Source Marketing Automation for Small Business: Marketing automation is a form of email marketing on steroids. The "steroids" in this case is the ability to suggest actions in the email's, track if ...

Leave A Response

* Denotes Required Field