How many email subscribers your blog has? Do you want to increase number of email subscribers? Then why not to add newsletter signup box after your post? After publishing Genesis theme modifications article, many Genesis theme users requested us to write tutorial on adding newsletter signup box. So here in this article we’ll share a way by which you can add a newsletter signup box after your post in Genesis powered websites.
Brian Gardner has already published article on same topic, his method is based on default ‘Genesis eNews and updates’ widget. But while implementing newsletter signup box using that guide, we’ve faced some difficulties. Method given by Brian works but main problem is you can not add newsletter signup box at both places – in widget area and below post because same CSS applied to both area so signup box in widget area will look weird. Many users want to add newsletter signup box at both places so here we’ll show best method to do that, add default ‘Genesis eNews and updates’ widget in primary sidebar widgets area and use method provided here to add newsletter signup box below your post. Although our method is different, still it is based on Brian’s method so credits goes to him.
Adding this signup box in Genesis child themes is relatively simple. Just follow the simple steps given below and add professional looking signup box like shown in above image after your posts.
Step #1
In WordPress Dashboard -> Appearance -> Editor -> Look into right column for function.php file, open that file and add following code at the end of it.
A) Code Snippet for FeedBurner Users:
/** Add a Newsletter Signup Box After Posts */
function add_newsletter_box() {
if(is_single()) {
?>
<div id="newsletterbox">
<div class="white-border">
<div class="newsletterbox-wrap">
<h4>Join Our Newsletter</h4>
<p>Join over 5,000 people who get free and fresh content delivered automatically each time we publish.</p>
<form id="subscribe" onsubmit="window.open( 'http://feedburner.google.com/fb/a/mailverify?uri=Google/FeedburnerID', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true" target="popupwindow" method="post" action="http://feedburner.google.com/fb/a/mailverify">
<input id="subbox" type="email" name="email" onblur="if ( this.value == '' ) { this.value = 'Enter your email address...' } " onfocus=" if ( this.value == 'Enter your email address...') { this.value = '' }" value="Enter your email address..." />
<input type="hidden" value="Google/FeedburnerID" name="uri">
<input type="hidden" value="en_US" name="loc">
<input id="subbutton" type="submit" value="Sign Up">
</form>
</div>
</div>
</div> <?php
}
}
add_action ( 'genesis_after_post_content', 'add_newsletter_box', 10, 1);
Note: Don’t forget to change “Google/FeedburnerID” text by your actual Google/Feedburner ID at two places.
B) Code Snippet for MailChimp Users:
/** Add a Newsletter Signup Box After Posts */
function add_newsletter_box() {
if(is_single()) {
?>
<div id="newsletterbox">
<div class="white-border">
<div class="newsletterbox-wrap">
<h4>Join Our Newsletter</h4>
<p>Join over 5,000 people who get free and fresh content delivered automatically each time we publish.</p>
<form target="_blank" class="validate" name="mc-embedded-subscribe-form" id="mc-embedded-subscribe-form" method="post" action="http://techlila.us5.list-manage.com/subscribe/post?u=eefa99bc3d40d94a1820fed4b&id=b28d5bf727">
<input type="email" required="" placeholder="Enter your email address ..." id="mce-EMAIL" class="email" name="EMAIL" value="">
<input type="submit" class="button" id="mc-embedded-subscribe" name="subscribe" value="Sign Up">
</form>
</div>
</div>
</div>
<?php
}
}
add_action ( 'genesis_after_post_content', 'add_newsletter_box', 10, 1);
Note: Don’t forget to change “form action URL” by your MailChimp form action URL. You’ll find your form action URL in MailChimp -> Lists -> For Your Website tab and choose first option from dropdown – Signup Form Embed Code and look for your form action URL (<form action=”YOUR MAILCHIMP ACTION URL” ).
If you are using AWeber or any other service then just change code between <form> </form> tags accordingly.
Step #2
Download the newletter box graphics and extract them in “/images/” folder of your Genesis child theme. This awesome graphics created by Brian, we’ve just added one “enews-ribbon-blue.png” image and changed enews.png file.
Step #3
In WordPress Dashboard -> Appearance -> Editor -> style.css. Add following code and update the file.
/* Newsletter Box below Posts
------------------------------------------------------------- */
#newsletterbox {
background-color: #f5f5f5;
border: 10px solid #e4e4e4;
margin-top: 30px;
}
#newsletterbox .white-border {
border: 1px solid #fff;
}
.newsletterbox-wrap {
background: url("images/enews-ribbon.png") no-repeat scroll left top transparent;
margin: -17px -18px;
overflow: hidden;
padding: 45px 30px 40px;
text-align: center;
text-shadow: 1px 1px #fff;
}
.newsletterbox-wrap h4 {
text-align: center;
}
.newsletterbox-wrap p {
margin: 0 35px 20px;
text-align: center;
}
.newsletterbox-wrap input[type="email"] {
background: url("images/enews.png") no-repeat scroll left center #fff;
box-shadow: 0 0 5px #ccc inset;
color: #999;
font-family: 'proxima-nova',sans-serif;
font-size: 12px;
margin: 0 5px;
padding: 15px 0 15px 45px;
width: 40%;
}
.newsletterbox-wrap input[type="submit"] {
box-shadow: 0 1px 1px #a24a1d;
font-size: 14px;
font-weight: bold;
padding: 10px 15px;
text-transform: uppercase;
}
This CSS will work for FeedBurner and MailChimp users, if you’re using any other service then change the code accordingly because it’s hard to us to provide code for each service as there are a number of different services that you can use. Don’t forget to change the name of the image to “enews-ribbon.png” if you want to use another colored image, e.g. enews-ribbon-blue.png.
If you’re facing any difficulties while adding a newsletter signup box then let us know in form of comments.

WordPress Tips for Making an Awesome Blog
How to Use WordPress Advanced Menu Options
How to Implement Google Authorship Markup in WordPress
Hi Rajesh, thanks for the detailed tutorial bro. I just added Newsletter Signup Box in my blog
Nice to hear that, now your site looking more professional
Hey Rajesh,
Really nice and complete tutorial, I will definitely try this on my website.
Tushar, try and let us know if you’re facing any difficulties.
You should not upload the images in your own server although this is illegal. Also you didn’t give the credits to the creator of this signup newsletter box, I mean Mr. Brian Gardner.
Dilawer, thanks for notifying, we just forgot to add the credits. Although our method is totally different still it is based on Brian’s method so we’ve updated the article and added credits to Brian Gardner. We’ve uploaded the graphics on our server because we’ve added one extra image and also changed one image so we don’t think it is illegal.
Hi Rajesh
Used it after reading Brian’s original article, but good to see you spreading the word in the Genesis community.
It gets results and… it looks good.
Yeah, when I read Brian’s article I tried to implement signup box, actually I like the graphics of that signup box. But after facing some problems, I tried to find out solution on that problems and now shared the solution here. Thanks.
Great tutorial bro
I have been struggling with CSS too since I have no experience in coding. This tutorial saves my life
Thank you so much.
Many people face problems because they don’t have coding knowledge, it’s nice to hear that our tutorial is useful for those people who don’t have any experience in coding, thanks
Rajesh , a really useful tutorial. I was looking for a similar type of box for my blog. I am going to implement this code very very soon !
Vignat, Implement it and let us know if you’ve any difficulties while implementing it.
Great post, you saved me
Nice to hear that
Great tutorial, I just added it to my blog now, but I will love if there is a tutorial on integrating it with MailChimp.
Updated the article and added code snippet for MailChimp users.
Thanks for the mailchimp update, you rock Rajesh!
Recently it was showing problem in styling but when I rechecked it worked perfectly.
Thanks Rajesh. Awesome post. Helped me alot.
So your problem is solved, nice to hear that Mohammed
Nice tutorial.. keep it up.
Thanks Parvez!
really needed a tutorial on genesis theme. Google brought your site to me. Thanks for the tutorial.

Essien recently posted – How to Track Your Adsense Check
How do I get the actual box? the sign up bar the title and text show up, but not the actual surrounding box or images? Please help!
Follow all the steps mentioned in the article carefully, I’m damn sure you’ve missed some steps.
help…. the image is not showing up on my blog http://www.doncyber.com
doncyber recently posted – Blogger Interview: Rajesh Namase of TechLila.com
Just checked your site, and I think you’ve not added any CSS (step 2 and step 3), please confirm and let us know.
Nice post once again. I was looking for a subscription box which should pop up at first screen when user open site. I would be really thankful to you if you can share how to create such subscription box.
Prashant recently posted – Most Common IPTables Rules Used in Redhat Linux
There are many paid and free plugins, try them.