Add Floating Share Buttons To Your Blog’s Sidebar (For Blogspot)

Apart from working on traffic and search engine optimization (SEO), there’s a need to intergrate your blog with popular social networking platforms. A floating share buttons (social bookmarking) widget by the right of every page is just one of the gadgets you must add to your blog if you intend to get free traffic from facebook and twitter. I wrote a post last week that went viral thanks to the power of facebook sharing. The post received close to 500 facebook likes in just a week! Underestimating the power of share buttons is like neglecting a major source of traffic to your blog. I’ve already written several posts on integrating your blogger hosted site with facebook, google plus and the rest of them. These posts include adding like buttons to individual blog posts, adding google plus buttons to blog posts, facebook comment box for blogger and large share buttons under blog posts among others.

Having a floating share buttons widget makes it even easier for your blog visitors to share your blog posts they find interesting. Unlike the previous ones, it’s easy to get this done as you won’t need to do any sort of HTML editing on your template. The floating sidebar sharing widget comes with the most popular social sites. You can see the widget just at the right side of this page and it scrolls with the page, leaving your visitor no choice but to share your content.

How To Add Floating Share Buttons On The Sidebar

1. Log in to your blogger account and click on Design

2. You’re now looking at your blog’s layout, right? Click on Add A Gadget on the sidebar.

3. Select HTML/Java Script

4. Paste the code below into the box and save. There’s no need for a title.

<!–SideBar Floating Share Buttons Code Start–>
<style>
#pageshare {position:fixed; bottom:15%; right:10px; float:left; border: 1px solid black; border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;background-color:#eff3fa;padding:0 0 2px 0;z-index:10;}
#pageshare .sbutton {float:left;clear:both;margin:5px 5px 0 5px;}
.fb_share_count_top {width:48px !important;}
.fb_share_count_top, .fb_share_count_inner {-moz-border-radius:3px;-webkit-border-radius:3px;}
.FBConnectButton_Small, .FBConnectButton_RTL_Small {width:49px !important; -moz-border-radius:3px;-webkit-border-radius:3px;}
.FBConnectButton_Small .FBConnectButton_Text {padding:2px 2px 3px !important;-moz-border-radius:3px;-webkit-border-radius:3px;font-size:8px;}
</style>
<div id='pageshare' title="Share This With Your Friends">
<div class='sbutton' id='gb'><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like layout="box_count" show_faces="false" font=""></fb:like></div>
<div class='sbutton' id='rt'><a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical" >Tweet</a><script src='http://platform.twitter.com/widgets.js' type="text/javascript"></script></div>
<div class='sbutton' id='gplusone'><script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script><g:plusone size="tall"></g:plusone></div>
<div class='sbutton' id='su'><script src="http://www.stumbleupon.com/hostedbadge.php?s=5"></script></div>
<div class='sbutton' id='digg' style='margin-left:3px;width:48px'><script src='http://widgets.digg.com/buttons.js' type='text/javascript'></script><a class="DiggThisButton DiggMedium"></a></div>
<br/><div style="clear: both;font-size: 9px;text-align:center;"><a href="http://geek.ng/2011/09/sidebar-floting-share-buttons-large.html" target="blank"><font color="black">[Get This]<font></font></font></a></div></div>
<!–SideBar Floating Share Buttons Code End–>

5. Save the widget and preview your blog.

If you already have a google plus button above or below your posts, the one in the widget might not appear. It seems you can’t have two +1 buttons on a page.

If you’re using a dark template, you can try out the code below if you don’t quite like the first one:

<!–SideBar Floating Share Buttons Code Start–>
<style>
#pageshare {position:fixed; bottom:15%; right:10px; float:left; border: 1px solid black; border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;background-color:#000000;padding:0 0 2px 0;z-index:10;}
#pageshare .sbutton {float:left;clear:both;margin:5px 5px 0 5px;}
.fb_share_count_top {width:48px !important;}
.fb_share_count_top, .fb_share_count_inner {-moz-border-radius:3px;-webkit-border-radius:3px;}
.FBConnectButton_Small, .FBConnectButton_RTL_Small {width:49px !important; -moz-border-radius:3px;-webkit-border-radius:3px;}
.FBConnectButton_Small .FBConnectButton_Text {padding:2px 2px 3px !important;-moz-border-radius:3px;-webkit-border-radius:3px;font-size:8px;}
</style>
<div id='pageshare' title="Share This With Your Friends">
<div class='sbutton' id='gb'><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like layout="box_count" show_faces="false" font=""></fb:like></div>
<div class='sbutton' id='rt'><a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical" >Tweet</a><script src='http://platform.twitter.com/widgets.js' type="text/javascript"></script></div>
<div class='sbutton' id='gplusone'><script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script><g:plusone size="tall"></g:plusone></div>
<div class='sbutton' id='su'><script src="http://www.stumbleupon.com/hostedbadge.php?s=5"></script></div>
<div class='sbutton' id='digg' style='margin-left:3px;width:48px'><script src='http://widgets.digg.com/buttons.js' type='text/javascript'></script><a class="DiggThisButton DiggMedium"></a></div>
<br/><div style="clear: both;font-size: 9px;text-align:center;"><a href="http://geek.ng/2011/09/sidebar-floting-share-buttons-large.html" target="blank"><font color="black">[Get This]<font></font></font></a></div></div>
<!–SideBar Floating Share Buttons Code End–>

For wordpress users, You can check this post – Floating Share buttons for WordPress.

These floating sidebar share buttons will surely make you get more facebook likes. Share this post if you find it helpful.

. Filed Under: Blogger




Author: Don Caprio

Don Caprio is a full time blogger / web designer living in Nigeria and apart from blogging, my other obsession is music. I'm a self-confessed Tupac fan, an iOS lover, an Android user, a Windows 8 power user, a writer with a 5-year old unfinished novel... and the list goes on and on. You can add me on Facebook, follow my updates on Twitter or add me to your circles on Google+! By the way, if your blog needs a custom design, you can contact me here...

Comments

    • Don Caprio says

      Search for this: #pageshare {position:fixed; bottom:15%; right:10px;

      Change it to this: #pageshare {position:fixed; bottom:15%; left:10px;

      Note that you're only changing right to left.

  1. Don Caprio says

    Search for this: #pageshare {position:fixed; bottom:15%; right:10px;

    Change it to this: #pageshare {position:fixed; bottom:15%; left:10px;

    Note that you're only changing right to left.

  2. Anika Chowdhuri says

    You have written well. go ahead
    Do you want to download Famous Movie? visit here http://3dmoviz.blogspot.com/.

  3. Kader Loco says

    How do I make the facebook like button go straight to my facebook page like normal facebook like buttons, what part of the code do I edit

  4. LC Hunt says

    @Don Caprio – Don, I noticed that sometimes I have my Google + button and sometimes I do not. Can you please tell me what comes to mind about that? Have you encountered the same with yours or know of someone that had this issue because of something they did?

  5. Don Caprio says

    It's exactly the same here too and I haven't been able to figure out how to fix it. I always assumed it was due to my slow connection.

  6. pasindu says

    nice post.thnx for sharing.check this also it will be useful.

    how to add any share button you want to this widget

    http://www.tech-cave.com/2011/12/add-any-share-botton-to-floating-share.html

  7. mani says

    i guess the facebook like on this floating toolbar counts the no. of likes for the current post being displayed. if i am right please tell me how to change that to show thw no. of likes of the facebook page

  8. Aditya Pandey says

    I did everything as you write here for automatic redirection of Opera Mini to WAP2 but when I open it on Opera Mini, PHP Error Message appears “Parse error: syntax error, unexpected T_BOOLEAN_OR in /home/*********/public_html/forum/index.php on line 114″.
    Please help me.
    I want to redirect people to this WAP2.

    • Don Caprio says

      I was wondering how this comment appears on the wrong blog post. It should be here – http://www.doncaprio.com/2011/10/customizing-simple-machines-forum-smf.html

      Anyway, I think you made a mistake editing the file. You need to retrace your steps or restore the default index.php from SMF package and try again.

      • Amir says

        Thanks a lot properly in most level societal symbols usually are an important items for ones internet site as well as each and every tumblr need to create this specific device for the web page the following is an additional scrolling discuss icons with blogger the in addition beneficial however, not much better then you definitely,: )

  9. Ebipade Enienghan says

    Thanks. This was helpful. For a long time I have been trying to implement share buttons as well as like on my blog. Now I have added, thank to this post. However, when I click the like button, my friends do not see that activity unless they are viewing my profile. How do I solve that? I intend to use like button to drive traffic to my blog. But unless my friends see activities of friends how will the traffic increase?.

  10. Shanky Sahni says

    Hi thanks Doncaprio,
    You are doing a great job here.I recently added this widget to my blog.It is working properly but there is a small problem.After adding this widget to my blog there is small blank rectangular box on the right side of my blog.I will be really thankful to you if you could solve the problem.
    Here is my blogspot blog-
    http://gadgetsmaniac4u.blogspot.com

    Looking for your reply.

    • Don Caprio says

      I checked your blog just now and everything looked ok. I couldn’t find the blank space and I guess you’ve resolved the issue.

  11. Shanky Sahni says

    Hi Don Caprio,
    Thanks for looking into my blog but the issue is not resolved yet.There is a box between the sponsors and facebook like box on the right side of my blog.It is having same width other widgets but small height.It appeared after inserting floating buttons code.I want to remove that.Please help me.
    http://gadgetsmaniac4u.blogspot.com/

    • Don Caprio says

      I checked again and even viewed the page source but there was nothing between the widgets. I think the space is normal though.

  12. Shanky Sahni says

    Hi Don Caprio,
    The problem is solved now.A friend helped me.Thanks for looking into my blog.You are so helpful.More power to you and more success to your blog.

  13. Natalie Perez says

    How do I change the buttons? I want the sidebar to look like this sidebar, http://stellarcorpses.com/

    Please write me back!

    • Don Caprio says

      There’s no way to make this particular one look like that except one comes up with a different code, changing the layout and css. Better still, you can run a web search.

  14. Cindy Sandelin says

    Thank you so much! This is just what I was looking for! Not sure how it works with each different website, but I’m sure glad it does!

    • Don Caprio says

      The floating share buttons sure works on blogger, wordpress and any other site that supports HTML. Just insert it somewhere in the body.

  15. The World of Deej says

    I installed this tonight and love it but hoping for a bit of help. If you check out my blog you’ll notice I have a facebook like box on the right side of my page. I only want the FB share button on the floater, but when I remove the like it causes the one for my page to stop working. Man that’s a lot of using the word like. Is there something in the code that I’m missing?

    • Don Caprio says

      You only need to remove this code: <div class='sbutton' id='gb'><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like layout="box_count" show_faces="false" font=""></fb:like></div>

  16. Chibi Jeebs says

    This is great – super-easy instructions. Thank you! :) Is it possible to add a “pin it” button for Pinterest?

    • Don Caprio says

      The widget appears on all pages by default except you’ve already done something preventing the widget from showing.

    • Don Caprio says

      Yes, you can read this – http://www.doncaprio.com/2012/01/how-to-add-floating-share-buttons-to-wordpress.html

  17. Wallpapers World says

    Thanks a lot its working in my website also http://free-wallpaperz-download.blogspot.com/

    is it possible to float the menu in the bottom of the page?

  18. latest tech says

    I try to add in my web http://www.czoot.com/,
    But in my laptop it works grt , But when i saw intomy desktop ,it become prob . Just my site loading and loading .
    my site is http://www.czoot.com/
    please tell me what i do ?

    • Don Caprio says

      And it’s the same when you refreshed? If you’re having problems with it, I suggest you remove it but I’m using it on a couple of sites without any problem whatsoever. You connection speed too might have dropped.

  19. hassan elyas says

    hey don caprio ! your awesome ,…it works great…was searching since long time :) thanks alot …

    my blog is www.androidcop.blogspot.com

  20. phan mem crm says

    Awesome! works perfect, but does anyone could post something like these social media counts will reflect the same count on other post or page?

  21. WhisperWood Cottage says

    Fabulous! Works perfectly! Have you had a chance to look into adding a Pinterest option yet? That would be much appreciated!

  22. Maarten says

    Tnx for the great post! It works really great! Easy to do also. Only one question, how do i get nice share buttons on the mobile website of my blog?

    iDevizes.blogspot.com a blog all about Apple, iDevices and iOS

    • Don Caprio says

      I don’t know much about customizing blogger’s mobile template, Jitendra. It would’ve been different if it were wordpress.

      You can only activate blogger’s default share buttons which also appears on mobile.

    • Don Caprio says

      Search for this: #pageshare {position:fixed; bottom:15%; right:10px;

      Change it to this: #pageshare {position:fixed; bottom:15%; left:10px;

      Note that you’re only changing right to left.

  23. Lizanovia M. Hadi says

    Thank you, Don! This is what I’m looking for. I remove my old widget and replace it with this one :)

  24. Saurabh says

    Thanks a lot for this! :) i loved it! but there is some problem with the top most facebook like button, it doesnt show anything! plz help :) Thanks in advance!

    -

    Blog address: http://c5-nokia.blogspot.com

  25. Melissa says

    Great widget! Thanks so much! I saw that there was a question about adding the Pintrest button into this earilier, but didn’t see the code. Do you have a code we can add in order to include Pintrest or the “Pin It” button into this gadget?
    Thanks so much, so easy to use! :)

  26. kuldhir says

    Thank you so much for this code. I cannot express my feelings in words. I searched for this code all around the web and i found it only on your website

  27. YCG says

    caprio whenever i use my site on low resolution ( or press ctrl and + ), the social buttons merge into the post. Can you solve this because it reduces the readability of the blog. instead of floating over the post it should move away with decreasing resolution like in this blog : www.buzzparas.com. Please help me soon with this problem.
    (And one more thing , though this is not my priority – Please do tell how to change the facebook like to work for whole site instead of individual post.)

  28. Sharon says

    Can you share us the code with pinterest as well? I see you have added pinterest but I cannot find the code elsewhere. It’ll be much appreciated. Thanks!

    • Don Caprio says

      Actually, I’m using a WordPress plugin abut I’ll see if I can intergrate Pinterest Button along with this. I’ll post an update if it gets done.

    • Don Caprio says

      It’s been updated – http://www.doncaprio.com/2012/05/adding-floating-share-buttons-with-pinterest-pin-it-for-blogger.html

  29. Uwazie Simon says

    I love the idea but can it be integrated in smf ? if yes what color will suggest for my forum @ www.obasimvilla.com/forum

  30. Divyansh says

    Hey don,
    i added this code in my template instead of widget so that it appears only in posts and not in homepage.
    But after doing that my facebook like box is not appearing in sidebar ( that 300*300 like box of my facebook page)

  31. Crunkatlanta says

    kool site …i always learn something from your site – i see you into music . I am also. Music promoting that is ..http://www.crunkatlanta.com

  32. Terri Two Pink Peas says

    Thank You SO much for this AMAZING and Super SIMPLE gaget! I LOVE it! It is one of the easiest gagets to install. This for sure is a MUST for any blog. Love, Love, LOVE it! I really appreciate it so much! Terri of Two Pink Peas www.twopinkpeas.com www.facebook.com/twopinkpeas www.twitter.com/mytwopinkpeas www.pinterest.com/twopinkpeas

  33. Yoginder says

    Very nicely explain every thing. Thanks for the post. Please provide how to add floating share point on wordpress blog also ..

    www.thingsoverflow.com

  34. bilikeme says

    for some reason, sometimes when the page is loaded on my blog, the sidebar is over the blog, not on the empty sidebar. It also doesn’t include all the buttons you have listed. Any help?

  35. bilikeme says

    not showing in the empty side bar area of my blog..sometimes shows up in the sidebar itself covering some other info.

  36. HellaQuirky says

    Thanks for this helpful, and super easy tutorial. I installed it into my blog without any hassle. Without content like yours and others on the internet, I doubt I’d have made as much progress modifying my blog! Thanks, again.

  37. Googma Sansar says

    Thank you for best sharing codes. it is really helpful for me to add a share widget in my blog. i appreciate your contribution.

  38. Sahil says

    hey thnx for the help mate :) !

    http://progamerzarena.blogspot.in/
    http://progamerzarena.blogspot.in/
    http://progamerzarena.blogspot.in/

    check out my awesome gaming blog too ;)

  39. deesu says

    pls don cappy..lolzz. i want you to gimme the code to add: you may also like this on my blogger blog on my blog. thanks

  40. Nazia shah says

    thank you Don Caprio, i am really impressed to view your article its really helpful and i was looking for this, i am going to apply it on my blog……

  41. asim nawaz says

    Thanks for this nice social bookmarking tool. It really increases our social media presence. I have just one suggestion . Please also add a demo link here. Thanks. Keep the good work going.

  42. frank joseph says

    I remembered back then, i used to visit your site, don to check out tweaks to customizing my blog, and today i needed to add a floating share buttons to my new blogger, and this is still working! I guess you should dedicated your time again to write about this once in a while.
    Thanks.

  43. sadia shaikh says

    very precious work you sharing with us and thanks for the code you providing to us here for more helping for bloggers…social media is more power Full tool.

Share Your Comments & Feedback:

Please do NOT use keywords in the name field because they won't be linked to anything anyway...just use your real name. Let's try to have a personal and meaningful conversation.

Commenting Note(s):
To insert code into comments, use: [php]code in here...[/php]
Some HTML tags allowed: <strong>, <em>, <del>, etc. (Just don't overdo it, please!)

Current ye@r *