Tuesday, 15 May 2012

Add Social Subscription Box Below Post


One of my friend ask me that how to add subscription box above post so I decided to post this tutorial for him.If you want this beautiful social media gadget to your blog then follow below steps.This widget is not made by me you can read real post here.

To add this widget to your blog follow some quick steps-

  • Go To Blogger > Design > Edit HTML
  • Check the "Expand Widget Templates" box
  • Search for <data:post.body/> (ctrl +F for search)
  • Just below it paste the following code.
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<style> 
form.emailform{ 
margin:20px 0 0; 
display:block; 
clear:both; 
.mbttext{ 
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuTzIKP4Ba92NwXWVxjraK6tRbpCZ7oUt4sRwvsmdR2FkExDtGKjbuwTeZLJMp_Eo1-cj2hUWBX0xI42bYYNEuLlMmq-EMvONFb6WcaRpLxuEkV5YnykzWjYyydUxQmmQC1wh_ePFPUKFy/s28/w2b-mail.png) no-repeat scroll 4px center transparent; 
padding:7px 15px 7px 35px; 
color:#666; 
font-weight:bold; 
text-decoration:none; 
border:1px solid #D3D3D3; 
-moz-border-radius: 4px; 
-webkit-border-radius: 4px; 
border-radius: 4px; 
-moz-box-shadow: 1px 1px 2px #CCC inset; 
-webkit-box-shadow: 1px 1px 2px #CCC inset; 
box-shadow: 1px 1px 2px #CCC inset; 
.mbtbutton{ 
color:#666; 
font-weight:bold; 
text-decoration:none; 
padding:6px 15px; 
border:1px solid #D3D3D3; 
cursor: pointer; 
-moz-border-radius: 4px; 
-webkit-border-radius: 4px; 
-goog-ms-border-radius: 4px; 
border-radius: 4px; 
background: #fbfbfb; 
background: -moz-linear-gradient(top, #fbfbfb 0%, #f4f4f4 100%); 
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fbfbfb), color-stop(100%,#f4f4f4)); 
background: -webkit-linear-gradient(top, #fbfbfb 0%,#f4f4f4 100%); 
background: -o-linear-gradient(top, #fbfbfb 0%,#f4f4f4 100%); 
background: -ms-linear-gradient(top, #fbfbfb 0%,#f4f4f4 100%); 
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=&#39;#FBFBFB&#39;, endColorstr=&#39;#F4F4F4&#39;,GradientType=0 ); 
background: linear-gradient(top, #fbfbfb 0%,#f4f4f4 100%); 
}
#doulike-outer { 
-moz-border-radius: 10px 10px 10px 10px; 
-webkit-border-radius: 10px 10px 10px 10px; 
-goog-ms-border-radius: 10px 10px 10px 10px; 
border-radius: 10px; 
background: none repeat scroll 0 0 transparent; 
border: 1px solid #D3D3D3; 
padding: 8px; 
-moz-transition: all 0.3s ease-out; 
-o-transition: all 0.3s ease-out; 
-webkit-transition: all 0.3s ease-out; 
-ms-transition: all 0.3s ease-out; 
transition: all 0.3s ease-out; 
width:480px; 
#doulike-outer:hover{ 
background: none repeat scroll 0 0 #FFF; 
-moz-box-shadow: 1px 1px 2px #CCC inset; 
-webkit-box-shadow: 1px 1px 2px #CCC inset; 
box-shadow: 1px 1px 2px #CCC inset; 
#doulike-outer td{ 
padding:3px 0; 
</style>
<div id='doulike-outer'> 
<div id='doulike'> 
<table width='100%'> 
<tbody> 
<span style='font-style: italic; font-size: 30px; font-family: arial,sans-serif, verdana;  color:#FF683F;'>Do you Like this story..?</span> 
<tr> 
<td>
<div id='fb-root'/><script src='http://connect.facebook.net/en_US/all.js#xfbml=1'/><fb:like font='' href='' layout='button_count' send='true' show_faces='false' width='300'/>
</td>
</tr>
<tr>
<td align='left'> <p style='color:#666; font-style:italic; margin:0px 0px 5px 0px; '>Get Free Email Updates Daily!</p> 
<form action='http://feedburner.google.com/fb/a/mailverify' class='emailform' method='post' onsubmit='window.open(&apos;http://feedburner.google.com/fb/a/mailverify?uri=lordhtml&apos;, &apos;popupwindow&apos;, &apos;scrollbars=yes,width=550,height=520&apos;);return true' style='margin: 0pt;' target='popupwindow'> 
<input name='uri' type='hidden' value='lordhtml'/> 
<input name='loc' type='hidden' value='en_US'/> 
<input class='mbttext' name='email' onblur='if (this.value == &quot;&quot;) {this.value = &quot;Enter your email...&quot;;}' onfocus='if (this.value == &quot;Enter your email...&quot;) {this.value = &quot;&quot;}' type='text' value='Enter your email...'/>
<input alt='' class='mbtbutton' title='' type='submit' value='Submit'/> 
</form> 
</td>

<td><p style='color:#666; font-style:italic; margin:0px 0px 5px 0px;  '>Follow us!</p> 
<a href='http://feeds.feedburner.com/lordhtml' rel='nofollow' target='_blank' title='Suscribe to RSS Feed'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdAZeGOmPZKbyuwBVTFqQQCs6fEZv9bQnGHYaKH-h8LLj1vxKia9VOoxdNJV9xu5IKABq8UfjCuansB7qzzfpE1dxKi6SmgUIuzeCTWAoH5wZiu-1BAQvVZDUGZ8fhmn_V4xmkSpyGqdeU/s40/w2bRSS+.png'/></a>
<a href='http://twitter.com/technologyblg' rel='nofollow' target='_blank' title='Follow us on Twitter'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4QXuQRuyt9Ik2N9JpgW5rEwHU7nwBQa2_UvS4HQC-boxq7h9tOaA16g7yyjAaQ3EwV-Vow-E7fBmq4M_076z5dI7HsGFi5SEus2FTK9ZGgPkUBZJnDOy41P7tyihWWlM5t2FEckjqgVBs/s40/w2bTwitter.png'/></a>
<a href='http://www.facebook.com/lordhtml' rel='nofollow' target='_blank' title='Follow us on Facebook'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVGV69cZlG_iK4wFEONU-nuYJC0UjN1vNhdHgcQVW5YpPDYngU5Z3POnJdPZh5quAIOLVjI0iP12L9mva1ctFabArHZ8HGzWDC7rwSjoFUVEjyB86cNl3jrSs0O3_rirBeHCCCYlaIlLtk/s40/w2bFaceBook.png'/></a> 
</td>
</tr>
</tbody></table></div></div> 
</b:if> 


Customize following things-

  • Replace lordhtml with your feedburner username.
  • Replace http://twitter.com/technologyblg.
  • Replace http://www.facebook.com/lordhtml.
NOW SAVE IT AND ENJOY.

If you love our post then share it or comment golden words below.

0 comments:

Post a Comment