Social_sharing_for_bloggerSocial media buttons is a great way to boosting your blog traffic. The shares of your blog content made through these social buttons circulate over different social networks will help your blog engaged with long term traffic. Twitter, Facebook and Pinterest all offer JavaScript that they'd LOVE for you to add to your site. Tracking is one of the reasons that they'd love you to add these. That may or may not be a strong reason not to add their JavaScript, but a concrete reason not to is speed. When you add three services' JavaScript you're adding three DNS lookups, three (or 20) HTTP requests for their JavaScript and images, and on and on. That JavaScript has to execute as well, of course, but the value it provides isn't justified over the speed and hassle involved in our opinion. We add just one third party (addtoany) script in this widget. I wanted to add social sharing links without adding JavaScript. Fortunately all these services support sharing via simply visiting a URL. Stated differently, you can share via an HTTP GET. This widget uses a total of 9 Icons but believe it or not it is super-fast and loads with in seconds.


Now Lets Add Them Below Each Post In Blogger

  1. Go to Blogger Dashboard > Select the Blog > Go to Template page of theBlog
  2. Click Edit HTML button.
  3. and Add the Following CSS Code before ]]></b:skin>
div#social-sharing   { 
width:550px; 
height: 90; 
background: radial-gradient(center center, circle cover, #ffffff, #f9f9f9); 
background: -o-radial-gradient(center center, circle cover, #ffffff, #f9f9f9); 
background: -ms-radial-gradient(center center, circle cover, #ffffff, #f9f9f9); 
background: -moz-radial-gradient(center center, circle cover, #ffffff, #f9f9f9); 
background: -webkit-radial-gradient(center center, circle cover, #ffffff, #f9f9f9); 
padding:10px; 
margin:0 auto; 
border: 1px solid #999; 
border-radius:5px; 
-webkit-border-radius:5px 5px 5px 5px; 
-moz-border-radius:5px 5px 5px 5px; 
-webkit-transition: all 0.6s ease-out; 
-moz-transition: all 0.6s ease-out; 
-o-transition: all 0.6s ease-out; 
-ms-transition: all 0.6s ease-out; 
transition: all 0.6s ease-out;
}
div#social-sharing:hover { 
-webkit-box-shadow: 1px 1px 3px #CCC inset; 
-moz-box-shadow: 1px 1px 3px #CCC inset; 
box-shadow: 1px 1px 3px #CCC inset; 
}
#social-sharing img { 
width: 35px; 
padding: 5px; 
border: 0; 
box-shadow: 0; 
display: inline; 
opacity:1; 
filter:alpha(opacity=1); /* For IE8 and earlier */ 
}
#social-sharing img:hover { 
-webkit-transition: all 0.6s ease-out; 
-moz-transition: all 0.6s ease-out; 
-o-transition: all 0.6s ease-out; 
-ms-transition: all 0.6s ease-out; 
transition: all 0.6s ease-out; 
opacity:0.6; 
filter:alpha(opacity=60); /* For IE8 and earlier */ 
}
.social-sharing-title { 
text-align: center; 
padding: 3px 10px 2px 0px; 
margin: 0 0px 0 0; 
color: #8d0303; text-transform: uppercase; 
line-height: 25px; 
vertical-align: middle; 
font-size: 14px; 
}

You can replace the Statement Text Color Highlighted in Red.  You can also change the Background width by changing the width: 550px; highlighted above in yellow color.

4. Next, locate the Second instance of <data:post.body/> tag and paste the following code Below/after it:

<b:if cond='data:blog.pageType == &quot;item&quot;'><
center> 
<div id='social-sharing'> 
<div class='social-sharing-title'>Do You Like This ? Please Take Five Second To Share It!</div>
<!-- Facebook --> 
<a class='face-book' expr:href='&quot;http://www.facebook.com/sharer.php?u=&quot; + data:post.url + &quot;&amp;t=&quot; + data:post.title' rel='nofollow' target='_blank' title='Share This On Facebook'><img alt='Facebook' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0uzDzESLP3ew0FQuatgBPMXzYIsefTY3FXo9YNS5qSyn_51_iplzlPVFMZwNIt4xA1Y92nsXwIC_MdXFDW8IdvOxxjMSlHuRHUtzQsKfdbAs5eq1eGgaw7lCqwQLuYa1zEvr2scHEJv4p/s1600/Facebook.gif'/></a>
<!-- Twitter --> 
<a class='twitter' expr:href='&quot;http://twitthis.com/twit?url=&quot; + data:post.url + &quot;&amp;title=&quot; + data:post.title' rel='nofollow' target='_blank' title='Tweet This'><img alt='Twitter' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXlmIPqg1RrBoTzhxdbxNEZ2SnhTaEoJSDO0cOEPbtgXVdGwXxkJZpWHZD5qnaHCV9J95J1pKXDidk_NFLtqC2cBM8ot2NeaCBf-vadKlYt_cuUOAE7uobQM4sMNfhphjK_BVh4bP72qRq/s1600/twitter_bird.gif'/></a>
<!-- Pinterest --> 
<a class='pint-er-est' href='javascript:void((function()%7Bvar%20e=document.createElement(&apos;script&apos;);e.setAttribute(&apos;type&apos;,&apos;text/javascript&apos;);e.setAttribute(&apos;charset&apos;,&apos;UTF-8&apos;);e.setAttribute(&apos;src&apos;,&apos;http://assets.pinterest.com/js/pinmarklet.js?r=&apos;+Math.random()*99999999);document.body.appendChild(e)%7D)());'><img alt='Pinterest' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgu4OXdI_WrrydIgOJ1lDt_c78_q5q_d0Q3ncxzlPCCgBH-72-WUI8-7WPvoCHFZRhly7E4EghlqLgOJ6EHGZvGb0gm1v38mWME3-T1ltomLcaJV_x4NCwAatOrSWxQXOKRK0NUMV_xWiAk/s1600/Pinterest.gif'/></a>
<!-- Stumbleupon --> 
<a class='stumbleupon' expr:href='&quot;http://www.stumbleupon.com/submit?url=&quot; + data:post.url + &quot;&amp;title=&quot; + data:post.title' rel='nofollow' target='_blank' title='Stumble this'><img alt='StumbleUpon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWIn5NOF8hQRMVu5C8tMjM2WsOzzlcfdsprZiyJdy1Uqc6dMk_TIhd0MxsOfCMO2-iAXPCrTVIFA5Ts5jB9B19AG-766-6PDLneOogzWkQkG9tMrKRdyc0G5BG9aRWkPbEsQ2lkH1iTWn8/s1600/stumbleupn.gif'/></a>
<!-- Delicious --> 
  <a class='del-icio-us' expr:href='&quot;http://del.icio.us/post?url=&quot; + data:post.url + &quot;&amp;title=&quot; + data:post.title' rel='nofollow' target='_blank' title='Share This On Delicious'><img alt='Delicious' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgy4FgpKCGtPb1RRFcdWfubiVnnVBObXHHSvAkP8IEtqK4YWKYO2-7hbbm_Bj-IDQtATh6eiQnIaiovT7vO9OXsNXs3tww3n0nsOWVr3CQUTD1cVerYcgfD7qbMg8NGe0TcWdKOaS2bSwvr/s1600/Delicious.gif'/></a>
<!-- Reddit --> 
<a class='reddit' expr:href='&quot;http://reddit.com/submit?url=&quot; + data:post.url + &quot;&amp;title=&quot; + data:post.title' rel='nofollow' target='_blank' title='Bookmark this'><img alt='Reddit' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihOFBiB1C6xyYWKyHDeOtsE3mymdITaPo7YtHIjcYUI4yyfvJAhgi49cXmwtHRsb3mu-V4cHtjRXB1laFDsgE8PNUkJcUURPQ6OIZm0tFDQeORLsSt76YzAVKTzLGeqm-T1HIzYvcY-DS9/s1600/reddit.gif'/></a>
<!-- Digg --> 
<a class='digg' expr:href='&quot;http://digg.com/submit?phase=2&amp;url=&quot;  + data:post.url' rel='nofollow' target='_blank' title='Digg This'><img alt='Digg' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwiVBYrHqUSw8yevRmkasMZMUbkHPmIKuCfRcJA2S_lQS2MXsLCDpm57cKoB15aykDolnAsJmx3W6v9B7i5UXIVPw1c_2XPjAJZk3K2twqnyO3OPceiqfb8jc7wLh3HF_EibuhB2QB06n1/s1600/digg.gif'/></a>
<!-- Email --> 
<a href='mailto:?Subject=My Blogger Tricks&amp;Body=Check out this site.. http://www.myblogger-tricks.com' rel='nofollow' target='_blank' title='Email This'><img alt='Email' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrRR9ISHcGn6MQ8RCWnLJsuvZDp6jzeecakFpUvY6JhrI6mz1C4uoImVYqehz0R9T3nhn3wOYh18zIFQpdOYWKcoxFNor-l2Z8p8OpxRUuhh3e6gB2NvWpCGr7aaWsU4Mrkg3XRxgnY25h/s1600/email.gif'/></a>
<!-- addtoany --> 
  <a class='a2a_dd more' expr:href='&quot;http://www.addtoany.com/share_save?url=&quot; + data:post.url + &quot;&amp;title=&quot; + data:post.title ' rel='nofollow' target='_blank' title='Share On Others Networks'><script src='http://static.addtoany.com/menu/page.js' type='text/javascript'/><img alt='Delicious' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNuPcg-0iHlL7rTOnUllIw5u167ceT4sR9cAtYcHkdtX6BroOMS2LRNrscwAgJEaGOikjvPnjEnp3rgm2Jegi5z4vsR9I5SAzQs5edqueXRTvli84WYYbAtWDVxNPsTZJw-r_HEsmJ3T2_/s1600/share-to-any.gif'/></a>
</div> 
</center>

5. See Preview before saving.

Note:- The buttons will only appear on post pages. We place this limit  because the 
Pin-it button only pins the page on which it appears. As such  on homepage (if we were to allow it there), every instance of the button will pin the homepage, not the post (as it’s “supposed” to).

Troubleshooting

While finding the <data:post.body/> code is coming three time.This Problem comes when we install Auto Read More Hack in our Blogs. For this Problem Search for any one line from below and Put Above Section of Widget HTML Code after it!

This
<div class='post-footer-line post-footer-line-1'>

Or this

<div class='post-footer'>

Or this

<b:if cond='data:blog.pageType == &quot;item&quot;'> 
<data:post.body/>

Let me know about other social sites that support this kind of sharing in the comments, and I'll add your tips to this post. I hope you will enjoy this tutorial and take a 5 seconds to share it.Cheers Smile

0 comments:

Post a Comment

 
Top