Header Ads

  • Breaking News

    Add Simple Social Sharing Below Your Blogger Posts

    Social 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. 

    1. Go to Blogger Dashboard > Select the Blog > Go to Template page of the Blog

    2. Click Edit HTML button.

    3. Add the Following CSS Code before ]]></skin>

    div#social-sharing   {
    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);
    margin:0 auto;
    border: 1px solid #999;
    -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;
    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;
    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 Blue.  You can also change the Background width by changing the width: 550px; highlighted above in Red 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;'><
    <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='http://3.bp.blogspot.com/-tdQqSrGyK0A/UixIE6-nIHI/AAAAAAAADZw/L1_oZ77XZZI/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='http://4.bp.blogspot.com/-qvZuf9kWuVw/UixIHKAZdSI/AAAAAAAADao/7AOSXVkuwdc/ 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='http://4.bp.blogspot.com/-48BGp-jLpfA/ UixIFoAoAHI/AAAAAAAADaA/a4SMqKDRqno/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='http://3.bp.blogspot.com/-Wa5Tyh1r3Ng/UixIG9GvWrI/AAAAAAAADas/yzizUt7zQ9k/ 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='http://1.bp.blogspot.com/-4EdR0vYOqGM/ Ui3DwhBBxHI/AAAAAAAADbA/CI5Tremd7D8/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='http://2.bp.blogspot.com/-Q0wmiZUSwRA/UixIGRda0xI/AAAAAAAADaU/ U1hgC4cviXc/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='http://3.bp.blogspot.com/-jrj7YxfIPgE/UixIFjv-vfI/AAAAAAAADaE/an-JwfXh9KI/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='http://1.bp.blogspot.com/-1-6g64zlV8E/UixIGPBkoKI/AAAAAAAADaQ/S_vYcUEpZ4M/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='http://3.bp.blogspot.com/-d5s1xCQ1FaA/Ui3FWCqhUBI/AAAAAAAADbM/j5EYPxb_hz4/ s1600/share-to-any.gif'/></a>

    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).


    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!

      <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;'> 

     I hope you will enjoy this tutorial and take a 5 seconds to share it.Cheers

    No comments

    Post Top Ad

    Post Bottom Ad