Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
25 Million+
Websites using our plugins
Years of WordPress experience
WordPress tutorials
by experts

Add a Floating Share Box in WordPress with Smart Sharing Plugin

Editorial Note: We earn a commission from partner links on WPBeginner. Commissions do not affect our editors' opinions or evaluations. Learn more about Editorial Process.

We were getting enormous amount of emails from people asking us how to make a floating share box on their WordPress site. Whether it was a plugin? After collaborating with our team, we decided that it was more efficient if we create a free plugin rather than replying to each individual email.

What does this Smart Sharing Plugin do?

Smart sharing adds a floating box with social media buttons in single posts only. By default, you can pick between retweet, facebook, digg, and stumbleupon. But you are not limited to these choices because there is an option to add your own custom codes.

What is the Advantage of this plugin?

This plugin applies B.F Skinner’s Positive Reinforcement theory to social media marketing. Normally buttons are placed either at the top of the post, or the bottom of the post. While both of those positions are OK, they are not the best. If you place them at the bottom of the post, then you are expecting that the user reads all the way to the bottom. Sometimes users like the post, and they don’t read full articles. But they would still share your articles if there was a positive reinforcement. This plugin adds a small floating box which scrolls down with the user, so they can vote whenever they are done.

Read more about this plugin and Download it

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions


  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Ibadullah says

    @wpbeginner@RuthMadison82 I tried the way you said but didn’t receive any dl link.

  3. Ibadullah says

    It doesn’t allow to download – Read the RuthMadison82 comment what’s she saying about that!

  4. wpbeginner says

    @RuthMadison82 If it says that you have already signup, then it means that you are a member of our newsletter. Look through your email because the download link was sent to you in the final welcome email of when you first signup. Otherwise, simply unsubscribe and rejoin.

  5. RuthMadison82 says

    This is supposed to help beginners? I cannot figure out how to download it. I go to the page and it tells me to sign up for the newsletter, so I do, and I click “download” and it tells me I’m already signed up for the newsletter, but does not give me a plugin. I’m getting very frustrated.

  6. mssbee says

    Just installed the plugin. The share bar is not static like yours, it follows page scrolling. How would I make it static?

  7. Crysislevel says

    hi @wpbeginner i just found out the smart sharing plugin breaks “GRAVATAR HOVERCARS” feature found in the Jetpack plugin. could u fix it? i luv ur plugin but kinda want the hovercards feature too! :(

  8. Crysislevel says

    hi i added the plugin to my site. thank you for the plugin! just wondering how do you make the bar to dissapear when you reach the bottom of the page like on your site?

  9. BijanGhorbani says

    i fixed the probleme by removing this :

    <script type=’text/javascript’ src=’′></script>

    It was called twice.

    Thanks for your quick answer anyway. :)

  10. wpbeginner says

    @BijanGhorbani There are various lightbox scripts. One has to be above or below the other. If the SmartSharing scripts are above it, then they will cause the issue.

  11. BijanGhorbani says

    @wpbeginner So how do you suggest it would be best to place the JS codes ?

  12. BijanGhorbani says

    I installed this plugin and it works fine but it has disabled all the lightbox effects in my posts, which is really bad. What is conflicting with the lightbox effect in this plugin please ?

  13. AbanoubWahied says

    Hi, i just installed this great plugin and all went smooth, my problem is that the plugin isn’t floating like the one on this page, it just sticks at a distance from the top of the page and when you scroll down it doesn’t go down with you.

  14. rdempsey says

    @wpbeginner will do. I installed Sharebar as a temporary solution, so I’ll switch them back later on and send a screenshot.


  15. wpbeginner says

    @rdempsey Rob, shoot over an email, so I can see what is going wrong. Please include a link to your site as well.

  16. rdempsey says

    Downloaded, installed and activated the plugin. Only issue is that two bars are showing up – one static and the other dynamically following the content. I’m on WP 3.1.3 using Genesis 1.6 with a child theme. Any guesses? Thanks!

      • Dom says

        !! It does work! I just hadn’t realized there was a separate settings button in the side panel. Nonetheless, the Retweet and Facebook buttons should be check by default IMHO. Anyway, you guys are great! Thanks for the reply.

  17. Mike says

    Like’s share bar it is not attached to the browser edge as such, so to make it a little better for various screen resolutions just make it fixed to the content and this way the share box will just be cut off when the browser window is resized!

    I replaced the php code for the share box css (in the plugin’s .php file) for static css:

    .sharepost{float:left; border:1px solid #E8E8E8; margin-right:10px; position:fixed; background:#FFF; margin-left:-100px; width:60px; z-index:0}

    .sharer{padding:5px; border-bottom:1px solid #e8e8e8}

    This will get you started, but you’ll have to do all future adjustments from your wordpress plugin editor in the .php file!

  18. Pitchers Hit Eighth says

    What changes did you make to the plugin to get it to be invisible on your site in mobile browsers?

    When I load my site on my mobile, the plugin overlaps the content.

    If you could share here, that would be very helpful. Thanks!

    • Editorial Staff says

      We do not know why WP Tap is showing the default theme content. Our plugin should only display on the theme because we are adding the code into wp_footer hook.

  19. dan says

    I have installed the plugin on a wordpress 3.01 installation and although the installation went through ok and I set up the options, nothing appears on my blog posts.

    Would you be able to take a look at it? The site is linked to me name


    • Editorial Staff says

      The plugin is not able to register itself to the footer. You might have to check that function out. A lot of users had this issue when running on Thesis. We are working on a new version of this plugin, which will be kick ass.

    • Editorial Staff says

      You can add this on a static site, but you won’t have any backend feature, so everything has to be static. Just add the CSS from this plugin…

  20. Chris says

    This plugin worked fine until I upgraded to wordpress 3.0, now its telling me that the plugin causes a fatal error.

    What can I do about this?

    • Editorial Staff says

      Just checked the plugin with 3.0 (it works fine). It must have been a problem working with another plugin. Can you please email us the details about your site (site name), the plugins you are using etc, so we can further assist you.

  21. Talk Binary says

    I have it installed on my website but unfortunately the StumbleUpon icon isn’t working appropriately. If you click on Stumble, it tries to stumble a certain page, for lots of posts.

    How do I fix this?

  22. Nabeel says

    Really light weight and nice plugin. (will advice you to make it more lighter :) – and never use jquery with it)

    however, like many people here, i was not able to make the plugin work with my theme too (using thesis 1.7) however i’ve solved the issue by making change in the code by replacing your get_footer to wp_footer. hopefully it will make some changes in your next release :)

    for those who need to fix the issue that the slider is not shown at all after activating the plugin, i’ve explained the steps here:

  23. Udegbunam Chukwudi says

    The code ain’t working. I just added to my page template and it doesn’t show up @ all.

    Is there a particular place in the page template where it needs to be added?

    Hope to hear from you soon. Cheers ;-)

  24. Naren Ubi says

    In this very page, I see that the retweet and Fshare thingy disappears for lower resolutions (for 1024×768 and 800×600). How do I achieve this? It’s such a nice plugin, but doesn’t look good when it floats over page text when in the aforementioned resolutions.

  25. Vincent says

    Thx for this plugin. Got a problem. My facebok share button, when i publish it cant show the name of the article anymore? And not the picture either? Can I solve this?

  26. Jordan says

    I have activated this plugin and its not showing up on my page? Not sure whats going on here but i’m pretty sure I’ve done everything correct.

  27. Michelle says

    I just uploaded the plugin and I love it, but I’m getting a 404 error with tweet meme. Tweet meme worked just fine when I had the individual button installed. I only need to enter my twitter name, right? I deactivated the original meme I had installed, and cleared my cache, but it still shows up with a question mark. Help?

    • Editorial Staff says

      It does not work automatically with all themes. You would need to add the following function in your single.php file add_smartsharing(); << remember to wrap it around with PHP and it will work.

  28. MrGroove says

    Nice plug-in. Was looking for something similar to mashables and I think you have the best so far short of my creating my own.

    Thnx for the custom code info.

  29. Social Media Master says

    THank you so much for this! I saw this on and have been wanting it for my new social media blog. I didn’t know the name of the plugin, thank you so much. Great website by the way! How many social sites can be on this plugin at once?

  30. Pedro says


    I’ve just downloaded and installed your plugin, and it works like a charm… except for one small detail.

    The captcha dialog is a real turnoff, especially since the words are not always that legible. How can I get rid of it? I already looked into the plugin code, but I couldn’t find anything that looked like it.

    Could you please point me in the right direction?

    Many thanks and congrats for your work.

  31. christian says

    This is like the hottest social media network plugin in the world! :) I really love it but I hope you could make it as awesome as the one in Mashable :)

  32. Steo says

    I’m wondering why the box is attached to my browser edge instead of my content just like you have here…in this way works fine, but in mine it overlap the content for resolutions smaller than 1024px….please help me! :)

    • Editorial Staff says

      The reason why it is attach to the browser screen is because it is the easiest and simplest way to add it. By doing it this way, we can make this plugin usable for most themes. You can see the CSS of this plugin, and then apply it manually on your site if you want. It is a simple position:fixed tag. The only thing is, you will not get any of the admin panel functions by doing it that way.

      You can modify the plugin file a little bit. Change the CSS properties to your needs, and then change the auto add filter. Then add the plugin function add_smartsharing() manually in your single.php file next to your content div. But that is a lot of work and only users with experience with PHP and HTML/CSS will be able to do it.

      • Diana Freedman says

        Can you please create a blog post with instructions for how to make this modification (or even how to add that additional functionality Mashable has where the share buttons snap to above the content when the browser is reduced to a certain width)? Or email me. I’ll donate! ;-)

        • Editorial Staff says

          No we will not be publicly providing any tutorials on how to customize the CSS. This plugin is released as-is and we will not be providing any free support.

  33. Will says

    Are you guys going to implement Facebook’s new “Like Button” into this plugin instead?

    Seems like it’ll be a lot more “stickier”

  34. Will says

    Thanks for the plugin! I’ve been searching high and low for this Mashable style sharing widget.

    Was thinking of the Meebo bar.. but this is PERFECT!

  35. Sascha says

    First off! Awesoem plugin!

    I have installed it and it works fine ;)

    I just have a small problem if i click on retweet i always been redirect to tweetmeme :( How cna i get it workin that the useer who clicks on retweet gets redirect direct to our tweeter account ?

    Many thanks


  36. Pat says


    How do you align the floating share bar to the content and not the edge of the browser? I see that your’s aligns to the content but the plugin does not. Any help would be great.


    • Editorial Staff says

      That is possible only if you add the function manually and modify the css to fit your needs. You need to understand the css fixed property and add it in your single.php.

      Here is how you can do it. First activate the plugin, then open your theme’s function.php file. Add the following line:

      remove_action( 'get_footer', 'add_smartsharing' );

      By doing this, you just removed the automatic function. Then you can place this code in your single.php file to call the function manually where you like.

      function add_smartsharing()..

      You would also have to edit the CSS file to match your needs. The plugin by default will not add it next to the content.

      Remember to make sure to edit the CSS to fit your needs. The defau

  37. Kyle says

    I’m trying to implement a floating share toolbar like the one mashable uses on a tumblr blog, is there anyway CSS, HTML or jquery version of this could be derived from this plugin? And if so how hard/easy would it be?

    • Editorial Staff says

      This plugin is solely for WordPress. You can use the codes from this plugin if you want to implement on your site as long as you give us credit.

  38. Sigurfreyr says

    I uploaded the sharesmart plugin to my wordpress site and every thing went well. My site is however not in English (yes guess what, it is true there is a whole world out there that doesn´t read or speak English). Is there any way to change for example ,,Share”, “shares” into another language?

  39. Vanesa says

    Hello Syed!
    I love your plugin. I’ve installed and worked perfect. But now that I’ve changed the theme, it disappeared. I also tried to uninstall and install again, but still nothing appear.
    Thanks a lot for your help!

  40. Diana Freedman says

    You guys are awesome. I’ve been looking like something like this for a while now, and it works perfectly on my blog.

    I tried installing the code for the original Facebook Share button (, but this doesn’t seem to work with this plugin (every page refresh would reset the counter). So it’s a shame that I have to lose my share count, but worth it to integrate this awesome functionality.

    Also, can you please direct me to a where I can find the code for a Google Buzz button with the counter?

    Thanks so much for an awesome plugin!

    • Editorial Staff says

      You don’t have to lose your share counts? fshare will show the same count that facebook share button will. For google button please read this article on Balkhis about Google Buzz count .

      After reading that page, you would see why it is not right to displaying the buzz count at this moment. But if you still think that you want to deceive your audience with a manipulatable count, then use this tutorial (Link )

      • Diana Freedman says

        Hello! I didn’t lose my share counts for most of my articles, but I definitely did for my most recent blog post at the time of installation; I had 27 Facebook shares, but it reset to 0. However, it seems that the share count carried over on the rest of my blog posts.

        Also, is there a way to display this plugin on the homepage as well as individual posts?

        Much thanks! :-)

        • Editorial Staff says

          No, this plugin will not display on the homepage unless you add the function in your theme. Although we do not recommended adding this to the homepage. Your homepage has numerous posts, which post will this plugin share?

          Here is the function if you want to call it anywhere else add_smartsharing()

        • Diana Freedman says

          Well, you see how Mashable has the Tweetmeme, Facebook Share, etc. buttons on each post on the homepage, and then has the floating share box within each post? I’d ultimately like to do that as well. Though if I can’t it’s the end of the world; my homepage load time is much faster now.

          Thanks again! :-)