I've got a great little tutorial for you today. This one will show you how to add a popup email subscription button to your blog. It will place a follow button on the bottom right hand corner of your blog. When a user clicks on the follow button an email subscription box will appear. The beauty of the button is that it is fixed. So whenever a user scrolls down the page the follow button moves with them. The button is unobtrusive so it won't clutter your sidebar but it as it is always on the screen wherever you are on the page subscriptions should increase. it is based on the newly introduced follow by email widget.
So let's look at how to add it.
First things first. You'll need to add the follow by email widget. To do this - Dashboard>Layout>add a Gadget>Follow by Email .
Delete Title and add feedburner URL.
Save.
Then navigate to Dashboard>Template>Edit HTML>Proceed.
Look for </head>.
Add the code below above </head>
<style type="text/css">
/*<![CDATA[*/
.FollowByEmail {background-color: #c0c0c0;width: 200px;color: #fff;position: fixed;z-index: 999999;right: 10px;bottom: 0;}
.followOpened {-webkit-border-radius: 1px 0 0;-moz-border-radius: 1px 0 0;border-radius: 1px 0 0;-webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);-moz-box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);}
.w2bfollowButton {background: #c0c0c0;color: #CCC;font-size: 12px;line-height: 28px;padding: 0 10px;text-decoration: none;position: absolute;top: -28px;right: 0;display: block;-webkit-box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.2);-moz-box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.2);box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.2);-webkit-border-radius: 2px 2px 0 0;-moz-border-radius: 2px 2px 0 0;border-radius: 2px 2px 0 0;height: 28px;}
.w2bfollowButton span {background: url("http://girldoesgeek.com/wp-content/uploads/2012/02/follow.png") no-repeat scroll 0 3px transparent;padding-left: 15px;}
.w2bfollowButton:hover,.followActive {color: #fff !important;}
.w2bfollowButton:hover span,.followActive span {background-position: 0 -37px !important;}
.followactive {background-color: #333;}
.follow-by-email-inner {padding: 15px;}
.FollowByEmail h2 {padding: 15px 15px 0;font-size: 18px;margin: 0 0 10px;font-weight: normal;}
.follow-by-email-inner p {margin: 0 0 10px;}
.follow-by-email-inner .follow-by-email-address {width: 95%;padding: 2px 4px;margin: 0 auto;-webkit-border-radius: 3px;-moz-border-radius: 3px;border-radius: 3px;font-size: 15px;border: 1px solid #444;color: #888;display: block;clear: both;}
.follow-by-email-inner form {text-align: center;}
.follow-by-email-inner td{display: inline-block;width:100%;text-align:center;}
.follow-by-email-inner .follow-by-email-address:focus {color: #000;border-color: #000;}
.follow-by-email-inner .follow-by-email-submit {cursor: pointer;padding: 2px 20px;background: #333;background: -webkit-linear-gradient(top, #333 0%, #111 100%);background: -moz-linear-gradient(top, #333 0%, #111 100%);background: -o-linear-gradient(top, #333 0%, #111 100%);background: -ms-linear-gradient(top, #333 0%, #111 100%);background: linear-gradient(top, #333 0%, #111 100%);color: #ccc;text-shadow: 0 1px 0 #000;border: 1px solid #282828;-webkit-border-radius: 11px;-moz-border-radius: 11px;border-radius: 11px;-webkit-box-shadow: inset 0 1px 0 #444;-moz-box-shadow: inset 0 1px 0 #444;box-shadow: inset 0 1px 0 #444;text-decoration: none;-webkit-transition: all 0.25s ease-in-out;-moz-transition: all 0.25s ease-in-out;-o-transition: all 0.25s ease-in-out;-ms-transition: all 0.25s ease-in-out;transition: all 0.25s ease-in-out;margin: 1em 0 1em 0;}
.follow-by-email-submit:hover {background: #222;background: -webkit-linear-gradient(top, #333 0%, #222 100%);background: -moz-linear-gradient(top, #333 0%, #222 100%);background: -o-linear-gradient(top, #333 0%, #222 100%);background: -ms-linear-gradient(top, #333 0%, #222 100%);background: linear-gradient(top, #333 0%, #222 100%);color: #fff;-webkit-box-shadow: inset 0 1px 0 #4f4f4f;-moz-box-shadow: inset 0 1px 0 #4f4f4f;box-shadow: inset 0 1px 0 #4f4f4f;text-decoration: none;}
.follow-by-email-submit:active {background: #111;background: -webkit-linear-gradient(top, #111 0%, #222 100%);background: -moz-linear-gradient(top, #111 0%, #222 100%);background: -o-linear-gradient(top, #111 0%, #222 100%);background: -ms-linear-gradient(top, #111 0%, #222 100%);background: linear-gradient(top, #111 0%, #222 100%);color: #aaa;-webkit-box-shadow: inset 0 -1px 0 #333;-moz-box-shadow: inset 0 -1px 0 #333;box-shadow: inset 0 -1px 0 #333;text-decoration: none;}
.w2bFollowFooter {text-align: center;font: normal 11px "Helvetica Neue", sans-serif;padding: 7px 0;margin: 0 0 -15px !important;border-top: 1px solid #3c3c3c;}
.w2bFollowFooter a {color: #aaa;text-shadow: 0 1px 0 #262626;background: none;text-decoration: none;}
.w2bFollowFooter a:hover {color: #fff;background: none;}
/*]]>*/
</style>
<script type="text/javascript">
/*<![CDATA[*/
;(function(w2b){w2b(document).ready(function(){w2b.extend(w2b.easing,{easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b}});var followBox=w2b(".FollowByEmail");followBox.prepend("<a class="w2bfollowButton" href="#"><span>Follow</span></a>");w2b("<p></p>",{class:"w2bFollowFooter",html:"<a href="http://feedburner.google.com" target="_blank">Delivered by FeedBurner</a>"}).appendTo(followBox.find(".follow-by-email-inner"));followBox.find("td:last").removeAttr("width");var followHeight="-"+followBox.outerHeight()+"px";followBox.hide().css({bottom:"-500px"});setTimeout(function(){followBox.show().animate({bottom:followHeight})},500);w2b(".w2bfollowButton").click(function(e){if(followBox.hasClass("followOpened")){w2b(this).removeClass("followActive");followBox.removeClass("followOpened").animate({bottom:followHeight},{duration:200,easing:"easeOutCubic"})}else{w2b(this).addClass("followActive");followBox.addClass("followOpened").animate({bottom:"0"},{duration:400,easing:"easeOutCubic"})}e.preventDefault()})})})(jQuery);
/*]]>*/
</script>
That is all there is to it! Any problems? Leave a comment.
21 Feb 2012
How to Add a Pop Up Email Subscription Box to Blogger
Related Posts:
Create a Lightening Hover Effect on Photos - BloggerYou may have noticed that when you hover on photos on my blog they lighten. It is a nifty little effect that can really make your photos stand out. knew of course about hover effect on photos but never implemented it until I … Read More
How to Make All Images the Same Size Automatically on BloggerYet another post inspired by a conversation on Twitter. It seems some themes stretch the dimensions of an image making it look out of proportion. So I've devised a solution. This fix will make sure all your post images are th… Read More
How to Add a Pop Up Email Subscription Box to BloggerI've got a great little tutorial for you today. This one will show you how to add a popup email subscription button to your blog. It will place a follow button on the bottom right hand corner of your blog. When a user clicks … Read More
Add a Facebook Like Button to Your BlogSo many blogs have Facebook pages these days as many bloggers have realised the effect such a page can have on your traffic. Now I am not the biggest fan of Facebook as I much prefer the functionality and feel of Google+. But… Read More
How to Add Recent Posts & Recent Comments Widgets on BloggerYou may have noticed that in my sidebar I have recent posts & recent comments widgets. In Wordpress there are many plugins available to achieve this but in Blogger there is no such built in widget. These widgets are usefu… Read More
Blogger wont let me save the "Follow by email" gadget with a blank title & feedburner URL :(
ReplyDelete