Add a Social Subscription Box Widget to your Blog

7:20:00 AM |


There are two simple steps to install this widget! Adding CSS code and Widget code!

Adding the CSS!

  1. Login to Blogger Dashboard > Choose your Blog and Click the More Options Dropdown
  2. Select the Template > Click on Edit HTML > Proceed
  3. Search for ]]></b:skin> and place the below code before it!
@import url("http://fonts.googleapis.com/css?family=Oswald&amp;text=AaBbCcEeFfIiKkLlMmOoRrSsTtWw%20");
.w2bOldSocial ul {
 font-family: 'Oswald', sans-serif;
 margin: 15px 0;
 overflow: hidden;
}
.w2bOldSocial ul li {
 float: left;
 width: 90px;
 padding: 0 0 0 55px !important;
 margin: 0 0 0 5px !important;
 line-height: 48px !important;
}
.w2bOldSocial ul li a {
 font-size: 20px !important;
 text-decoration:none;
 padding:0 !important;
 margin:0 !important;
 text-decoration:none;
}
.w2bOldSocial ul li a:hover {
 text-decoration:underline;
}
.w2bOldSocial ul li.w2brss {
 background: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmPKlWOzKvfjIbFVhUouvdYjZ5ruN0ww6eNd2FNzX4SD9nKqNG4TUDZNO3TcoCJkLFEZt3G9VpCtaXLsSXsECwPG39F-10NDUdbMiPblakgJ2WBBBOswbmv8gaEVRRkAKI4D-5WtzIzq_I/s48/RSS.png") no-repeat scroll left center transparent !important;
}
.w2bOldSocial ul li.w2bmail {
 background: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgs149GmSoTv3yeIe8jmzvP-LK5piNhrzUCTvyyzTUi2KqpvuLmzzSWuXpp7DvD0KvaSK45KYqRXdjbQq-uKqoIgoUrUF1FLBjcQ2nGbo4vrrZBLxuwEAiIr0uSYm9dwrIYCmW33TGyth6h/s48/Mail.png") no-repeat scroll left center transparent !important;
}
.w2bOldSocial ul li.w2btwitter {
 background: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiwxwYjemlxK2wTQ80sejuSJMau2ukWUB1l6guCeKsnTwzi9jHosGVjOcx8TNF8AaQpu46pYv12xVM72Wh08YE00lrFOrqyc-nCmzKvhTkQjbGtbeZeA_tCqrfOTqtclptRR0d0anm1R5W/s48/Twitter2.png") no-repeat scroll left center transparent !important;
}
.w2bOldSocial ul li.w2bfacebook {
 background: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq8OPfmxDSqBNiczRTYTtT8mxZfUwpI9Pr6LCK62IY8pGEpCEEDAqq4itCxC_MN3TiSPkq8GKw0FGkg5gLxlHxn3TaaXYUidSMYXn4yKGvFBxCT_EZVgbv8J_QYHjtARxk690sS7aImVZE/s48/Facebook.png") no-repeat scroll left center transparent !important;
}
#w2bEmailsub {
 display: block;
 clear: both;
 margin: 10px 0;
}
form.w2bEmailform {
 margin: 20px 0 0;
 display: block;
 clear: both;
}
.emailText {
 background: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTKEf81lrMpPdTWH5ZdfYMuN-fNQExeeoUW5FyJWy4QLTsZWaQ-f9ISSYkk0K8rgY5R1T9wyU3mJCWQBEbhkgdoDigadfKjX21PGdN3VCczi381kCdUNXDg6JXPqlL1soMHJM6YnttIgBs/s28/w2b-mail.png") no-repeat scroll 4px center transparent;
 padding: 7px 15px 7px 35px;
 color: #444;
 font-weight: bold;
 text-decoration: none;
 border: 1px solid #D3D3D3;

 -webkit-border-radius: 4px;
 -moz-border-radius: 4px;
 border-radius: 4px;

 -webkit-box-shadow: 1px 1px 2px #CCC inset;
 -moz-box-shadow: 1px 1px 2px #CCC inset;
 box-shadow: 1px 1px 2px #CCC inset;
}
.emailButton {
 color: #444;
 font-weight: bold;
 text-decoration: none;
 padding: 6px 15px;
 border: 1px solid #D3D3D3;
 cursor: pointer;

 -webkit-border-radius: 4px;
 -moz-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='#FBFBFB', endColorstr='#F4F4F4',GradientType=0 );
 background: linear-gradient(top, #fbfbfb 0%,#f4f4f4 100%);
}
 

Adding the Widget

  1. Go to Layout > Click on Add Gadget on your sidebar
  2. Choose HTML/JavaScript Gadget and Paste the below Widget Code

<div class="w2bOldSocial">
 <ul>
  <li class="w2brss"><a href="http://feeds.feedburner.com/url">RSS</a></li>
  <li class="w2bmail"><a href="http://feedburner.google.com/fb/a/mailverify?uri=url" >Email</a></li>
  <li class="w2btwitter"><a href="http://twitter.com/url">Twitter</a></li>
  <li class="w2bfacebook"><a href="http://facebook.com/url">Facebook</a></li>
 </ul>
</div>
<div id="w2bEmailsub">
 <form action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=Way2blogging', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true" class="w2bEmailform">
  <input type="hidden" value="Way2blogging" name="uri" />
  <input type="hidden" name="loc" value="en_US" />
  <input type="text" 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;}" value="Enter your email..." name="email" class="emailText" />
  <input type="submit" class="emailButton" value="SignUp" title='' />
 </form>
</div>
  • Replace the red url text with your feeds url
  • Replace the blue url with your email subscription url
  • Replace the yellow url with your twitter username
  • Replace the green url with your facebook fanpage or profile
Happy Blogging!
 
 

0 comments: