It’s easy to add a MailChimp Signup form to your WordPress blog or website to collect names for your email list without using a plugin. For a lot of themes, the form will just blend in with your theme. Look at how the form will look in the default WordPress themes – Twenty Twelve, Twenty Thirteen, and Twenty Fourteen.
The advantage of using your own form is that you can create a different signup form for each of your lists, in case you have one for a download and one for your blog. The only other way to do this is to use more than one plugin; not so nice. Also adding a form directly to your website allows people to sign up without leaving your website, and the form can be styled to match the styles styles of your website.
So you start by looking at the signup form settings in MailChimp.
Now you can get the code for the signup form to embed on your blog.
Add a text widget and paste in your MailChimp code.
This is the MailChimp Classic form code.
/* JavaScript is here */
Right at the beginning is this code section; this is what creates the styles for the MailChimp form.
You can delete those lines so that the beginning of the code in the text widget looks like this. This will allow you to see how your form looks with only your theme styles.
Now look at our three themes again. It’s looking much better except that there’s not enough spacing; the Submit button is running into the input fields.
So you can add a little CSS back. It’s preferable that you use a Custom CSS Editor or add the CSS to your child theme style.css, but you can also add it directly to the widget.
In style.css or a custom CSS editor, add
#mc_embed_signup .mc-field-group
Or make the beginning of the code in the text widget look like this:
#mc_embed_signup < clear:left; >#mc_embed_signup .mc-field-group -->
(Note that if you use the Naked form code from MailChimp, you will need to use #mc_embed_signup input instead of #mc_embed_signup .mc-field-group in the two CSS blocks above.)
This is how the forms look with just adding those two lines of CSS.
Now you have a nice MailChimp signup form without using a plugin. This should work for many current themes, including many Genesis child themes. Please let me know how yours looks.
You can also add more styles to make the form stand out from the sidebar, but that can wait for another time.
Tell me about your website project for a personalized solution!
Sign up to get easy-to-use WordPress tutorials, Genesis theme customizations, and other helpful tips for your small business website.
Your email address will be used to send you blog posts. Privacy Policy
Marcy DiazI’m Marcy Díaz, the owner of Amethyst Website Design, a small business located in Phoenix, Arizona (in Ahwatukee Foothills). I help people, like you, grow your business with an affordable WordPress website design. Sign up for my blog and website tips that help you manage your own website.