Social media share buttons are a must have for every site, but they can significantly impact your site’s speed. At WPBeginner, we created the floating social bar to maximize our social media visibility without impacting our site speed.
Floating social bar is a light-weight WordPress plugin that adds a horizontal floating share bar to your blog posts, pages, and other post types. The floating ability allows this eye-catching social media bar to get you maximum shares.
Slim and Fast
Unlike other social media plugins, we only support major social media networks to keep our plugin slim. You can add share buttons for Twitter, Facebook, Google+, LinkedIn, and Pinterest.
Floating Social Bar only loads scripts when necessary. None of the social media scripts are loaded when the page is loaded. Instead we show a replica image with all the counts. We use the socialite script to only load social buttons when the user brings their mouse over the button. Doing this allows us to keep your site as fast as it would load without any social plugins.
Easy to Use
Floating Social Share Bar is extremely easy to use. There is a simple options interface that allows you to drag-and-drop the social buttons that you want to display. You can also use the drag-drop interface to control the order of how social share buttons appear on your site.
For developers, we have a template tag available for custom use cases.
We also have a metabox that allows you to disable the social media bar on specific posts or pages.
Best Social Media Plugin for WordPress
What is the best social media plugin for WordPress is one of the most common questions that we get asked at WPBeginner. We found it hard to recommend social plugins for WordPress because none of them met our standards. We only recommend what we use or would use.
All social plugins are very heavy and significantly slow down your site. This plugin is by far the fastest social media plugin for WordPress that exists.
We created this for our site over a year ago. After numerous requests from our users, we decided to release our internal social plugin for our audience and the greater WordPress community.
We will do our best to provide support through the WordPress forums. However, please understand that this is a free plugin, so support will be limited. Please read this article on how to properly ask for WordPress support and get it.
If you like this plugin, then please leave us a good rating and review.
Extract the zip file and just drop the contents in the
wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from Plugins page.
Go to Settings > Floating Social Bar for options.
More Details can be found on the Floating Social Bar page. You can also watch the video below for further instruction.
- Is there a template tag for the plugin?
Yes, in fact there is both a template tag and a shortcode available for use.
floating_social_bar( $args = array(), $return = false )
In the template tag, you can pass in an array of arguments to denote which social services you want displayed. The order in which the services are entered will be the order in which they are displayed. The following keys are available for use:
For example, if you want to use the template tag to add in facebook and twitter services, you would do the following:
if ( function_exists( 'floating_social_bar' ) ) floating_social_bar( array( 'facebook' => true, 'twitter' => true ) );
The shortcode takes the same parameters as the template with the following syntax:
[fsb-social-bar facebook="true" twitter="true"]
- Why is the button count 0?
To maximize the performance, we get the social media count from each API and store it in a cache for 30 minutes. It only gets the count for the post when its loaded to reduce server load. For example, if no one visits your two year old post, then this plugin will not waste your precious server resources for that post. It only gets the count right when a user visits the post or page.
We have tested and noticed that this small delay have no impact in the number of shares you get. However, there is an option in the plugin setting’s page that allows you to change the minimum interval if you want to get faster updates. But remember, it will increase server load.
- How can I make the social bar static when using the shortcode or template tag?
Easy. Just add
static="true"to the shortcode or
'static' => trueto the template tag inside your array of arguments to make the social bar static (non-floating).
- How can I disable Socialite when using the shortcode or template tag?
Again, easy. Just add
socialite="false"to the shortcode or
'socialite' => falseto the template tag inside your array of arguments to prevent Socialite from running.
- Can I hide the social bar on specific posts or pages?
Yes you can hide the floating social bar on specific posts or pages. All you have to do is go on your post’s edit screen where you will find a metabox to hide the social share bar.
- Why is the share bar not floating?
If you can see the share bar on your site, but it is not floating then 99% of the time it is a conflict with another plugin or your theme.
Twitter doesn’t work, the function he uses is deprecated, google plus works currently, but it really shouldn’t the cURL he is using does not or should not work rather!
Other than that it’s a great plugin, it’s a shame these platforms can’t work together and make something nice for developers with actual continuous support.
These plugins will always eventually be out of date.
I used to use one social media plugin, which was so good, but was not Updated for last two years. So I had to uninstall and this one is also not updated for one year, so not going to use this one.
i will give 5 stars rate (perfect) if this plugin has share button on facebook (the recent plugin only using like button).
Very nice Plugin
Been using this plugin for a couple of … years. And love it, but it would be even better if we could add other social media buttons instead of only 5.
When I would post a link to my blog on my Facebook the text to the story would show up with the dimensions of this plug in instead of the blog post itself. Once I removed the plug, everything seems to be OK.
Contributors & Developers
“Floating Social Bar” is open source software. The following people have contributed to this plugin.Contributors
Interested in development?
- Bug fixes.
- Fixed potential XSS vulnerability with saving the order of social services.
- Fixed possible security issue with saving order of items in FSB.
- Fixed clearfix bug in Firefox.
- Fixed bug with subtle shift when viewing on mobile device.
- Fixed clearfix bug in Firefox.
- Fixed more bugs with URL encoding.
- Fixed bug with special characters not being encoded for sharing.
- Fixed bug where extra span tag existed in Google share count.
- Improved escaping of titles (by stripping HTML tags) for social media services.
- Fixed bug where options would be deleted if plugin was deactivated.
- Fixed bug with outputting closing div tag if no services were enabled.
- Fixed bug where Twitter share would open duplicate window if Tweets widget was present on page.
- Fixed bug where social bar would not display when using WordPress SEO social features.
- Fixed bug where content was not returned correctly.
- Fixed bug with Pinterest image and added a fallback image option.
- Improved loading of share counts so that there is zero impact of page time.
- Improved display of share bar by hiding 0 counts by default.
- Added ability to disable Socialite (see FAQ for disabling if using shortcode or template tag).
- Added better checks to ensure the bar will always float if checked to do so.
- Added ability to determine floating or static bar if done manually via shortcode or template tag (see FAQ for more info).
- Fixed bug in MultiSite that caused options to be same across all sites in network.
- Fixed bug with Pinterest if no images were found (can even set default image!).
- Improved opening of social service windows to match official buttons.
- Added ability to make the bar static and choose to display above or below the content (or both).
- General bug fixes and improvements.
- Fixed bug that sometimes prevented social bar from appearing.
- Fixed bug where $post wasn’t set correctly for updating stats.
- Improved checks by making sure bar is only output in main loop.
- Improved scrolling transition from fixed to hidden when approaching comment respond areas.
- Removed unnecessary checks for multiple bar outputs (some people may want more than one with future updates).
- Fixed bug where items wouldn’t work in MultiSite.
- Fixed bug that caused items to output on both blog and single pages.
- Improved mobile support by ensuring the bar doesn’t float on mobile devices.
- Removed the default labeling for the bar.
- Fixed bug where scrolling wouldn’t work if stopper div was not found.
- Fixed bug where stats updater wouldn’t fire if template tag was used outside of a singular view.
- Fixed bug in Firefox where settings display was messed up.
- Initial release of the plugin.