Adding email forms to key locations around your website
Optins can put a signup form in four main areas of your website: a post or page, sidebars, the page title, or areas between major page elements like the header and footer.
Every form sends subscribers to your Default Email List, unless you choose otherwise, so set the main email list for your site from the global settings to save time when adding forms elsewhere later.
Before you start
- You need an Administrator account on a site running Marketers Delight 6.0.4 or later.
- Optins also requires WordPress 6.2 or later and PHP 7.4 or later.
- Install and activate the Optins Drop-in, then connect your email service. Your lists appear in the menus below only after a service is connected.
Set a default email list
- In the WordPress admin menu, select Optins, then open the Email Form tab.
- Choose a list from Default Email List. Lists are grouped by email service. The first choice, Select an email list…, leaves the default empty.
- Select Save.
If your email service is not one Optins connects to, paste its form code into Custom HTML Code on the same tab and save. An HTML Code choice then appears in the list menus, including Default Email List, so your own form can be the default.
A form set to Use default email list always follows this setting. Change the default later and every one of those forms moves to the new list.
Add a form to a post or page
Block editor
Classic editor
- Open the post or page and add the MD Email Form block.
- In the block settings sidebar, open Email Form. Leave Email List on Use default email list, or choose another list for this form. The default choice shows the name of your default list in parentheses.
- Optionally, turn on Ask for name to add a name field, or Attach fields in a single line to put the fields and button side by side.
- Change Email Field Label or Submit Button Text if you want your own wording. The button says Join Now! until you change it.
- Open Text to add a Lede, Title, Text, and Footer Text around the form.
- Save the post or page.
Choose the list, fields, and button text in the Email Form panel, then the words around the form in Text.
The remaining panels design the box around the form:
- Image adds an image beside the form, with Image Position and Image Width.
- Colors sets Background Color, Title Color, Text Color, Button Color, Button Text Color, and an Overlay Color with Overlay Opacity. Each picker shows only your site’s Color Palette.
- Design adds a background image with Background Size, and sets Margin Bottom, Padding, Add shadow, and Add border radius. Padding applies once the form has a background color, text color, or background image.
- Open the post or page and place your cursor where the form should go.
- Enter the
[md_email]shortcode. With no attributes it uses your Default Email List. - Add attributes to change the form, for example:
[md_email attached="true" submit_text="Send me the guide"]. - Save the post or page.
These attributes change the form itself:
| Attribute | What it sets |
|---|---|
list | A list other than the default. Use the ID your email service gives the list or form (for example, a Mailchimp audience ID), or custom_html for your Custom HTML Code form. |
attached | true puts the fields and button on one line. |
email_input_name | 1 adds a name field. |
name_label | The name field’s label. The default is “Enter your name…”. |
email_label | The email field’s label. The default is “Enter your email…”. |
submit_text | The button text. The default is “Join Now!”. |
These attributes put the form in a box, the same box the MD Email Form block prints:
| Attribute | What it sets |
|---|---|
lede, title, desc | Text above the form. |
footer | Text below the form. |
bg_color, text_color | Background and text color, as a hex value such as #1d3557. |
bg_image | A background image, as a Media Library image ID or image URL. |
classes | Extra CSS classes on the box. |
[md_email title="Get the worksheet" desc="One page, every Sunday." bg_color="#1d3557" text_color="#ffffff" attached="true"]If AWeber or MailerLite is connected, the block also shows Thank You Page URL, which sends new subscribers to a page on your site after they sign up.
Add a form to a sidebar
- Go to Appearance → Widgets.
- Add the MD → Email Form widget to a widget area.
- Enter a Title and Description, and leave Email List on Use default email list… or choose another list.
- Optionally, check Show fields on single line or Ask for subscribers name, and change the field labels and Submit Button Text.
- Optionally, set colors, a Background Image, and Classes under Form Design.
- Save the widget.
Add a form to the page title
An email form can sit with the title at the top of a page, post, or archive, in place of call to action links.
For one page or post, open it in the editor and go to Page Settings → Featured → Call to Action. For a post type archive, go to a screen such as Blog → Settings, open Page Title, then select Call to Action. For one category, edit the category and do the same.
- Choose Email Form from CTA Type.
- Choose a Position: After Title (the default), Before Title, or Title Aside.
- Leave Email List on Use default email list, or choose another list.
- Optionally, add a Lede and Title above the form, check Attach input fields to each other in a single line or Ask for subscribers name in signup form, and change the labels and Submit Button Text.
- Select Publish, Update, or the save button for the settings screen you are on.
To put a form in a box at a set position across many pages, such as after the first paragraph of every post, add a call to action box with an email form instead.
Check the result
Open the page in a new tab. The form should show your list’s fields and the button text you set, or Join Now! if you left it blank. Enter a test address and confirm it reaches the right list in your email service.
If no form appears, the form has no list: it is set to use the default, and no Default Email List is set. Set the default on Optins → Email Form, or choose a list on the form itself. If a page title form is missing, check that CTA Type is set to Email Form. If you use a caching plugin, clear its cache and reload.



