Today I will show you how you can add Pure CSS3 Social Share Icons under Every Post. These socials icons have a cool effect when mouse pointer in hovered over these icons. These icons are made up of CSS without use of any JavaScript which slows down your page speed. Clicking any icon will share your post in that particular site.
A live working demo of these buttons can be seen just below.
Once you have seen the demo we can move on with the tutorial on how you can add these Social Share icons under every post of your blog.
Editing in HTML Editor
First go to Blog Title → Template → Edit HTML. Press Ctrl + F and search for <data:post.body/> code and paste the below given code just below <data:post.body/>.
NOTE : There maybe more than one <data:post.body/> so make sure that you have selected the right code.
<b:if cond='data:blog.pageType == "item"'>
<link href='https://dl.dropboxusercontent.com/u/76401970/All%20Blogger%20Tricks/abt-social-anime.css' rel='stylesheet' type='text/css'/>
<ul class='abt-social' id='abt-cssanime'>
<li class='abt-facebook'>
<a expr:href='"http://www.facebook.com/share.php?v=4&src=bm&u=" + data:post.url + "&t=" + data:post.title ' onclick='window.open(this.href,'sharer','toolbar=0,status=0,width=626,height=436'); return false;' rel='nofollow' title='Share this on Facebook'><strong>Facebook</strong></a>
</li>
<li class='abt-twitter'>
<a expr:href='"http://twitter.com/home?status=" + data:post.title + " -- " + data:post.url ' rel='nofollow' title='Tweet This!'><strong>Twitter</strong></a>
</li>
<li class='abt-googlebuzz'>
<a expr:href='"http://www.google.com/buzz/post?url=" + data:post.url + "&imageurl="' rel='nofollow' title='Post on GoogleBuzz'><strong>Google Buzz</strong></a>
</li>
<li class='abt-stumbleupon'>
<a expr:href='"http://www.stumbleupon.com/submit?url=" + data:post.url + "&title=" + data:post.title ' rel='nofollow' title='Stumble upon something good? Share it on StumbleUpon'><strong>StumbleUpon</strong></a>
</li>
<li class='abt-digg'>
<a expr:href='"http://digg.com/submit?phase=2&url=" + data:post.url + "&title=" + data:post.title ' rel='nofollow' title='Digg this!'><strong>Digg</strong></a>
</li>
<li class='abt-delicious'>
<a expr:href='"http://delicious.com/post?url=" + data:post.url + "&title=" + data:post.title ' rel='nofollow' title='Share this on del.icio.us'><strong>Delicious</strong></a>
</li>
<li class='abt-linkedin'>
<a expr:href='"http://www.linkedin.com/shareArticle?mini=true&url=" + data:post.url + "&title=" + data:post.title + "&summary=&source="' rel='nofollow' title='Share this on LinkedIn'><strong>LinkedIn</strong></a>
</li>
<li class='abt-reddit'>
<a expr:href='"http://reddit.com/submit?url=" + data:post.url + "&title=" + data:post.title ' rel='nofollow' title='Share this on Reddit'><strong>Reddit</strong></a>
</li>
<li class='abt-technorati'>
<a expr:href='"http://technorati.com/faves?add=" + data:post.url ' rel='nofollow' title='Share this on Technorati'><strong>Technorati</strong></a>
</li>
</ul>
</b:if>
After adding the code save the template.
You are done now. Now you and your visitors can see and share your awesome posts with these cool social share icons which has great hover effect.
Spamming Like a Rockstar LOL Ofcourse you can !
ReplyDeletehey google buzz is not working :(
ReplyDeleteBecause Google Buzz has been closed by google.
Deleteso please fix this code :-)
DeleteMyRockingTricks
Updated :)
DeletePls Help
DeleteVery useful..Thank Q
ReplyDeletesuperb website with css tricks i liked it very much than other websites like bloggersentral,allbloggingtips e.t.c i continue support for u
ReplyDeleteregards with http://gamezzadda.blogspot.com
Hi!
ReplyDeleteHow can I add a title to it like "Share This Post" ?
I really love this one. The only code I've tried and worked perfectly. But I'd like to ask for your favor, could you show me how to centerlize this social share bar under every post please?? Thank you.
ReplyDeletevery cool and elegant social bar widgets. thanks admin.
ReplyDeleteHi
ReplyDeleteI love this but how can I put my icons into the code?
Looks like the css location is no longer valid?
ReplyDeleteSorry, I am not done. I only had texts not icons of share icons. Please help me . As You can see below http://www.giasuhaiduong.net/2014/09/trung-tam-tri-uc-gia-su-tai-hai-duong.html
ReplyDeleteHey,
ReplyDeleteThis particular code works for blogger. How can I use it for my self developed blogs???