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

How to Add a Floating Social Share Bar in WordPress

Adding a floating social share bar can greatly improve your content’s visibility and encourage readers to promote it on social media. A floating bar stays with the user as they scroll, making it easy to share content at any point. 

While running our own sites, we have seen the impact of floating social share bars in driving engagement and increasing traffic. By strategically adding this feature to our websites, we have observed a noticeable boost in social shares and a wider reach for our content.

Whether you’re running a blog or a business, adding a floating social share bar can be a simple way to encourage engagement and expand your online presence.

In this article, we will guide you through the process of adding a floating social share bar to your WordPress site. Our step-by-step instructions make it simple even for beginners.

Add a Floating Social Share Bar in WordPress

Why Add a Floating Social Share Bar in WordPress?

Adding a prominent social share bar makes it easy for visitors to share your content on social media platforms like Instagram, Facebook, and Twitter. By keeping this bar visible while scrolling, you provide a convenient way for users to share your content at any time.

This can lead to increased engagement, traffic, and brand awareness. Plus, it can motivate users to leave comments and likes or follow your updates.

Other than that, a floating social share bar can indirectly improve your website’s rankings by increasing social signals. When users share your content on social media, it generates backlinks to your website, which can positively impact your search engine rankings.

Having said that, let’s take a look at how to easily add a floating social share bar in WordPress. In this tutorial, we will be discussing a code and plugin method. You can use the links below to jump to the approach of your choice:

Method 1: Add a Floating Social Share Bar With WPCode

If you are looking for a customizable and easy way to add a floating social share bar in WordPress, then this method is for you.

For this approach, we will be using WPCode because it is the best WordPress code snippets plugin on the market. For more information on this tool, check out our full WPCode review.

WPCode has an extensive library of pre-made code snippets, including a ready-to-use solution for adding a floating social share bar. This eliminates the need for custom coding and makes it easy to implement this feature on your website.

First, you need to install and activate the WPCode plugin. For more information, see our beginner’s guide on how to install a WordPress plugin.

Note: WPCode has a free version. However, to unlock the code snippets library, you will need the plugin’s pro plan.

Upon activation, head over to the Code Snippets » + Add Snippet page from the WordPress dashboard and use the search box to locate the ‘Floating Social Media Icons’ snippet.

Once you do that, just click the ‘Use snippet’ button under it.

Click Use Snippet for the floating social media icons snippet

This will open the ‘Edit Snippet’ page on your screen. You will notice that the code snippet for the floating social share bar, with links to Facebook, Instagram, Twitter, and LinkedIn, has already been added to the ‘Code Preview’ box.

You can now use the code snippet as it is or scroll down and change the position, margin, width, background color, height, and border radius for the icons.

For instance, the background color for these social media icons is black by default. However, you can replace it with the hex code of a color that better matches your brand.

Customize floating social share bar

After that, scroll back to the top and toggle the ‘Inactive’ switch to ‘Active.’

Then, click the ‘Update’ button to store your settings and add a floating social share bar.

Activate the update the code snippet

You can now visit your website to see the social media icons in action.

Here is how it looked on our demo website.

Floating social share bar GIF

Method 2: Add a Floating Social Share Bar With a Plugin

If you don’t want to use custom code on your website, then this method is for you. That said, keep in mind that you won’t get as many customization options with this approach.

First, you need to install and activate the Floating Social Share Icons plugin. For details, see our tutorial on how to install a WordPress plugin.

Upon activation, visit the Floating Links & Social Icons page from the WordPress dashboard. By default, the plugin will automatically add floating icons that allow users to visit the home page, the next post, the previous post, the top of the page, and the bottom of the page and copy the current URL.

However, if you don’t need any of these functionalities, then you can toggle the switch off for these options. Once you do that, your changes will be synced automatically.

Remove unnecessary icons by toggling the switch

After that, head to the Floating Links & Social Icons » Social Icons page from the admin sidebar.

To customize your floating social share bar, simply toggle the switch next to the desired social media platforms. This will make the corresponding icons appear on your bar, allowing visitors to easily share your content.

Add floating social share bar in WordPress

Your settings will be saved automatically once you make the changes.

Then, you can visit your WordPress site to see the floating social share bar in action.

GIF for floating social share bar

Bonus: Add a Floating Social Bar in WordPress

If you want, you can also add a floating social bar with follow buttons in WordPress.

This allows visitors to easily connect with your social media profiles and stay updated on your latest news and events. By making it convenient for users to follow you on social media, you can expand your reach and foster a dedicated community.

To do this, you will need OptinMonster, which is the best lead generation tool on the market. Plus, it comes with a premade template to create a floating social bar.

First, visit the OptinMonster website and sign up for an account. Remember that you will need to purchase the Basic plan because it includes the Floating Bar campaign type.

OptinMonster website

Then, head to your WordPress dashboard to install and activate the OptinMonster connector plugin. For details, see our tutorial on how to install a WordPress plugin.

Upon activation, you will see the welcome screen and the setup wizard. Go ahead and click the ‘Connect Your Existing Account’ button.

Connect your existing account

You can then follow the on-screen prompts to connect your OptinMonster account with WordPress.

Once that is done, head over to the OptinMonster » Templates page from the WordPress dashboard and select ‘Floating Bar’ as the campaign type.

Next, click the ‘Use Template’ button for the ‘Follow on Social Media’ template. This will open a prompt where you must add a name for the campaign you are about to create.

Select Follow on social bar template

OptinMonster’s drag-and-drop builder will now launch on your screen.

This is where you can design your floating bar.

Customize the social bar according to your liking

The plugin offers different blocks that you can simply drag and drop onto the template. For instance, you can add an image, text, button, and more to your social media bar.

To learn more, see our tutorial on how to add an alert bar in WordPress.

After that, click on the social media follow buttons within the floating bar. This will open some new settings in the left column.

Here, you can add the URL for your Facebook, Instagram, and Twitter pages accordingly.

Add URLs for your social media pages and IDs

Once you are done, switch to the ‘Publish’ tab from the top and change the campaign status to ‘Publish’. Then, you will need to click the ‘Save’ button and close the visual builder.

You can now visit your WordPress site to view the floating social bar in action.

Floating social share bar in WordPress

We hope that this article helped you learn how to add a floating social share bar in WordPress You may also want to see our beginner’s guide on how to add social share buttons in WordPress and our top picks for the best social media plugins to grow your site.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

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

123 CommentsLeave a Reply

  1. zak

    What social media plugin do you use on this site? Because it looks different from you floating social share bar?

  2. Stephanie

    How do you add the sharing buttons to the bottom of the post instead of the top?

    Thanks

  3. Ralph Eastwood

    I’ve just installed the plugin. Looks nice. Is there a way to have to bar at the bottom of the post? It seems better sense to have it there. People are going to share a post once they’ve read it and think there’s value – I don’t want to rely on them scrolling all the way back to the top just to share!

  4. Laura

    I have installed, activated and added Facebook to the ‘enabled social services’ box. I don’t have a Twitter user account so left that part blank. I saved the settings but the Facebook tab does not appear on my website! Did I miss something? Thanks

  5. sham

    My social count is back to zero after migrate to HTTPS. How to fix this?

  6. Alan

    Your instructions say, “Next, add your twitter ID in the field …”
    I do not have a Twitter account myself. Can I not use this plugin without joining Twitter? (I am on Facebook and LinkedIn.)

    • Editorial Staff

      Don’t enable the twitter share button or simply leave it blank. It allows you to get more followers if you enter the twitter ID there.

      Admin

  7. Siska

    I would like to use this pluging, but i can´t find a way to change the bakground colour…Mi web it´s not white.

  8. Siska

    I would like to use this pluging, but i can´t find a way to change the bakground colour…Mi web it´s not white

    • WPBeginner Support

      Try adding this in your theme’s stylesheet:

      #fsb-social-bar {
          border-bottom: 1px solid #f1f1f1;
          border-top: 1px solid #f1f1f1;
          padding: 10px 0;
          margin: 0px 0 20px 0;
          float: left;
          background: #222;
          position: relative;
          clear: both;
      }
      

      Admin

  9. Jean

    Thanks for this! How would you go about to tracking the shares as a goal in Google Analytics?

  10. Elisa

    Error when pressing the button google +1. I get a red triangle and not resolve it.
    Help !!!

  11. Rick

    How can I turn off the display showing the number of times it has been shared? I do not want the count of shares to be shown.

  12. Rebecca

    Hi, nice plugin. I’m having an issue though, when I use the “pin it” button, it crops the photo. How can I avoid that?

  13. Skwty

    Just wanted to give a heads up that your Floating Social Bar plugin was causing issues with my WP-Bold theme. It would remove the excerpt from the widget that I used to display related content in the sidebar. The title was there, but only on the single.php would the excerpt disappear. Solostream support mentioned that I should say something. I switched to another plugin because of it, but would much rather use the Floating Social Bar.

    Thanks!

  14. Jon Brown

    Are you still planning to release a version that includes comment counts like this site does? Even if not ready for release is that code public?

  15. Jorge

    Hi! Thanks for the great plugin. I have some questions when people press like or +1 do they share the post in my blog too? How can people share my content from the social bar? What is the capital of North Dakota ;) Thanks again!

  16. Julius

    Great plugin, but unfortunately it consumes lots of resources. P3 plugin shows that it consumes 51% of all my plugins (I have 12 plugins).

    • WPBeginner Support

      We use it on our own sites and we are very concious about page speed. As for P3 plugin, the test results can be affected by many factors such as other services running on your server, if you are on a shared server, this will also affect results.

      Admin

  17. Urmet

    Great plugin – I would like to know one thing – can I have it this way that the counter loads immediately – like you have it on your own page – sharing numbers are visible even if I am not hovering over the plugin.

  18. Haider

    Great Plugin Indeed!

    I finally activated and modified it a little to suit my theme :)

    I have a few queries:

    1. Do you plan to include the new facebook share button along with the like button ? Please consider this.
    2. Won’t it be better to handle styling with a separate CSS file rather than inline CSS ? A lot of premium themes have option for custom CSS which is added to the header; but that doesn’t work in this case. I had to modify the plugin file to change the styles.

    Thank you so much for such an awesome product!

  19. Jenn Marie

    Hi there! From one high-quality person to another: I see you. This plugin rocks, and I suspect it’s due to the meticulousness I see on all your stuff!

    One question: any idea why the bar is not sticky for me on iPhone (iOS7)? I’m using Point, a responsive theme. Have tried disabling other social plugins.

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.