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.
Now lets add them below each post in blogger
- Go to Blogger Dashboard > Select the Blog > Go to Template page of the Blog
- Click Edit HTML button.
- 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 == "item"'><
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='"http://www.facebook.com/sharer.php?u=" + data:post.url + "&t=" + data:post.title' rel='nofollow' target='_blank' title='Share This On Facebook'><img alt='Facebook' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtgxegAQAOO7xBQxrc8KfSspUZF3Jb76WJ7Qd4qYpvDinqrSrtI6aG5lNysSdhkuBX74LMfwSuHkrU7qnsBTo-iZ4TEgapyybfLuzJ0SsC_pHYeXKiCoj9D049KE6nGnTz7H3udhQNDWEb/s1600/Facebook.gif'/></a>
<!-- Twitter -->
<a class='twitter' expr:href='"http://twitthis.com/twit?url=" + data:post.url + "&title=" + data:post.title' rel='nofollow' target='_blank' title='Tweet This'><img alt='Twitter' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEif-03ziQj9t5ITgTvCr-Sbj40mLwX1rXDSq-o_cRsLb_rsgRm7yxRcjA94DuG2dsCZPutNaF1AwR8tsHXGpSlGnC5mpxQ-z1lWkOP-lT-PfR7DxusHDK6Y8mf95aKiyu3jz1-JIliza3rT/s1600/twitter_bird.gif'/></a>
<!-- Pinterest -->
<a class='pint-er-est' href='javascript:void((function()%7Bvar%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','http://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)%7D)());'><img alt='Pinterest' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLQLBc082F2RqrSmrFCtGMO-lekVlbroeF0N01T98aJWlO2UYggN4uxatiIrMQOd1Z4FByRI4r_epj5nZl0rmYEjipgjNQW9ur0tYxX1YtJuVh9_BdJI0FwDrUE2tXO1kjbDcOBMdntlNQ/s1600/Pinterest.gif'/></a>
<!-- Stumbleupon -->
<a class='stumbleupon' expr:href='"http://www.stumbleupon.com/submit?url=" + data:post.url + "&title=" + data:post.title' rel='nofollow' target='_blank' title='Stumble this'><img alt='StumbleUpon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmEaFXrL2BeBtVfC53JQaiNFT910tlTDzGx2V6n-d1cnM_Yr3tOOpVJUaKjJXLnGaOsMka3UXonIVkZcjjHP9Jghhqw36fcMj4kDskPfjfeL9xx0ugix_AVSbvuu_Wu2KPZskuE37Vii34/s1600/stumbleupn.gif'/></a>
<!-- Delicious -->
<a class='del-icio-us' expr:href='"http://del.icio.us/post?url=" + data:post.url + "&title=" + data:post.title' rel='nofollow' target='_blank' title='Share This On Delicious'><img alt='Delicious' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU5EOVMnKiy7IIr-b4I5uV2x4FYpPg0RpjQzmtrtqPvsOPT7RIH3uj6sciZuwME4dKHA7_GjPgh-oJieSV59I1bziV_xt6roUZsJXrTUK49q-7WVpKuq4fmbqds2tg9ZBNVNUKG1og2pvZ/s1600/Delicious.gif'/></a>
<!-- Reddit -->
<a class='reddit' expr:href='"http://reddit.com/submit?url=" + data:post.url + "&title=" + data:post.title' rel='nofollow' target='_blank' title='Bookmark this'><img alt='Reddit' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJ6HaYFYriUcwOFn0G7GjL8pbXihJYsxX_kRmxyh-Lm-08JkdQ6Ixpo08K1-vUUjO1MxRSSf27jO-p5DQ1kKZxK59NRg4lMwVQ9q9DCxWTGdP5qcYmY03Yhuji_UebK9Op0KJBLcO-Wtt0/s1600/reddit.gif'/></a>
<!-- Digg -->
<a class='digg' expr:href='"http://digg.com/submit?phase=2&url=" + data:post.url' rel='nofollow' target='_blank' title='Digg This'><img alt='Digg' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRb0s2qlaMxX0Jz0JAeotzT4cLAHabL5bRoFCl6k88PYu277SikCiCQbM5Ds7tIDp9vUXg23aB_2RvmRUO4Z_YSZQhD48e88n7sfYyKe-xRoaByNaajvMsxBhEadQukt2v5oZmWHuNZ50Y/s1600/digg.gif'/></a>
<!-- Email -->
<a href='mailto:?Subject=My Blogger Tricks&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/AVvXsEhOrgANYJ7x-TDf7KKkTkBC49_lxaws9GDdqmprznz0cdL-zKmnZOxvYiFT_gW-G_OBIKpptseMF58f-3AxqNKVgWHHSO0Sk9bpDV0-jVAGXpIoGEuryrTLgr878C_qgKTHgzt95Ti8I80A/s1600/email.gif'/></a>
<!-- addtoany -->
<a class='a2a_dd more' expr:href='"http://www.addtoany.com/share_save?url=" + data:post.url + "&title=" + 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/AVvXsEgtThbNQSYIMP57U-x_ytbl_LGpQeBTS-oFb06Hf9i1nNeg5Cz4M4DEYQo22-O5yGntvYKMznWVDS3B9Y246b28gHKqdsth6lLr0eIlAIvpPPiG30QRpL5kmlDSLPEOgi9brTAiDtDxQjVI/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 == "item"'>
<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
This comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by the author.
DeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by the author.
DeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by the author.
DeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteSocial media is a unique format as it helps you promote your content directly to your audience, and in turn it generates traffic via people sharing your content with others, and through SEO.
ReplyDeleteI you are using WordPress, you can use the social media share button by AddThis. It does not require any coding knowledge and it is best for beginners.
ReplyDelete