Sharebar Plugin for WordPress… and how to add Google+

In the process of writing up a post about a bunch of WordPress plugins that I use and recommend, I decided to write about the Sharebar plugin in isolation of the others simply because (apart from the fact that it’s awesome), by default, it excludes some important social networks that deserve inclusion.

What is sharebar?

You’ll notice that I have a hovering bar to the left hand side of this page (assuming I’ve kept it) that renders share buttons to various social networks. It hovers at the top of the page as you scroll down a post – meaning that it’s always in view, and it’s always offering encouragement for your readers to share. If the page is resized below 1000px (default), the vertical bar (to the left or right of your page container) disappears and a horizontal sharebar appears under the post title.

I’ve seen about a dozen variants of this plugin (mainly paid premium products) – but Sharebar is excellent, and it’s free.


Install and activate Sharebar as you would any other plugin. You can download sharebar directly from WordPress.org here


The plugin offers a number of social share buttons by default. For each social network there are two button options: one ‘large’ button that renders when the sharebar is to the left or right of your page container, and a ‘small’ button that will be displayed under your title should your page be wider than 1000 pixels.

Sharebar Big & Small Button Configuration (Click for larger)

There are a number of configuration options available via the ‘Settings’ tab that enables you to customise colour and presentation.

Adding additional buttons

The author has indicated via his ‘to-do’ list that he’ll add more buttons, but you’ll always want a different combinations of buttons that are included by default. The Google +1 button, for example, is not yet an option. However, the plugin does have functionality that permits you to add additional share buttons, assuming the button code is available from the platform you wish to add.

Adding the Google +1 Button to Sharebar

Google provides four button options via its +1 webmaster page

Installation is easy on any ‘normal’ webpage.

If we want to install this code into a WordPress blog, the first thing you will have to do, as per Google’s instructions, is add the JavaScript to the head of your blog. You’ll have to copy this code into your theme’s functions.php file or, if you have one, into a custom function file.

Now you must add Google code for both a large and small button into a textbox that’s presented in the Sharebar button configuration options.

Configuration Options for the Google +1 button

Note that I’ve used the tall and small options. Once updated, the Plus One button will be available for inclusion in the sharebar.

Adding the LinkedIn Share Button to Sharebar

LinkedIn also have a share button that enables readers to post information to their LinkedIn profile. As with the Google Plus button, it’s easily integrated into Sharebar. Navigate your way to the Sharebar options (under Settings) and click “Add New Button”.

For the small button you should use code for the horizontal count:

For the big button – displayed when the sharebar is rendered to the right or left of the page – you’ll need to render the Vertical Count button:

Your results will look like this:

LinkedIn Button options

Alternative Facebook Share Button

The clever chaps at awe.sm have built an alternative share button for Facebook for those that want a button that looks a little different. It’s my preferred option because the native FB button tends to cause some formatting problems. It’s also highly configurable and integrates well with other services (such as Google Analytics).

For the big button, add:

For the small button, add:

You can see the results of the alternative FB share button on the sharebar to the left of this page.


For more information:

Plugin page on Wordpress.org
Publisher’s website
fbShare.me – alternative FB share button
Google +1 Webmaster page
LinkedIn Publisher Page

Shortt URL for this post:


  1. Chris Peters

    Great post! Ive been trying to find a tutorial regarding the sharebar for a while now. Thanks for sharing! haha

  2. Thanks! Your post helped me add Google+, which I was looking for, and it helped me fix the strange formatting issue with the facebook button. Thanks again!

  3. Pingback: Basic Conversion Rate Optimization techniques

  4. Thanks so much for these clear, straightforward instructions. I’ve wanted to use Sharebar but didn’t know how to add these buttons…now I’m all set! I’m grateful for the info.

  5. Thank you so much for this information. I have been trying to get the plusone tall button in my sharebar for the longest time. You made it easy and to the point. I will not be selfish, I will share this post.

    Thanks again :)

  6. Thanks Marty, I just installed sharebar on my blog and this helped me add the Google+1 button. I use a wordpress theme called headway so added the asynchronous script in the footer and all works fine. Cheers!

  7. Pingback: WordPress Parallax Scrolling Website - Quaero Media Goes Live! | Quaero Media

  8. Slobodan

    Please for help. How to format the content of the link shared on FB. I’ve tested Sharebar, but when I’m sharing on FB it gives me link in this form:


    and not with the post title and it’s content

    please reply me on e-mail

    • Marty

      The position:fixed; CSS will keep a div in a constant position to the browser window.

      You’ll want to use something like this (you could use sharebar but it’s not formatted or intended for such a task).

      div.floating-form {
      border:1px solid #ffcc00;
      div.floating-form a, div.floating-form h3 {
      margin:0 0.5em;
      .input {
      border: 1px solid #006;
      .button {
      border: 1px solid #006;
      background: #9cf;

      <div class="floating-form">
      <h3>Email Us</h3>
      <form action="">
      Name: <input type="text" class="input" />
      <textarea cols="10" rows="5" class="input" /></textarea>
      <input type="submit" value="Submit" class="button" />

      It’s outside the scope of this blog post so I’ll write something up soon.

  9. Love this plugin!! I am trying to remove the sharebar from my print style sheet. I’ve tried many different combos but none seem to work. Any thoughts on what code i need to add to my print.css so that the sharebar bullets and wording do not appear in a print preview/print version of my site.

  10. Hi,

    The Facebook Share button creates a really long space (or gap) underneath it. I’ve tried to move it up the list to see if it changes it but it just puts a massive gap between it and the next button. I’d create a link to share but I cant leave it live on the site. Any idea how I can ‘close off’ the button code so it doesnt leave this long gutter. Thanks.

  11. Mario

    Matter #1:
    i cannot get the alignments for the buttons come up properly and nicely side by side, instead they turn up like this:

    how do i 1) remove the blue “dots” that somehow appear there and 2) how do i align the buttons so they are nicely next to each other?

    Matter #2:
    when i click on the “share”-button, it opens up a FULLSCREENED window, but instead, i want it to open up in a WINDOWED screen, not fullscreen… how and where do edit this..?

    Matter #3:
    my theme does not have a “functions.php”-file.. where do i input the g+1 javascript code then..?

  12. Pingback: Boost Your Blog’s SEO Mojo with These 6 Simple, Actionable Steps : eXprtMedia & Marketing

  13. Marleen

    Thanx, this is really helpful. Sharebar was the only floating one i found that is also responsive, but initially i was put of because it doesn’t include google+ and linkedin. I didn’t know it’s this easy to add those yourself. Thanx again!

  14. Pingback: Blog | Dalhost DesignsDalhost Designs

  15. Pingback: How To Add Sharebar Plugin To Your Blog -

  16. Pingback: seo | Increase Your Weblog's web optimization Mojo with These 6 Easy, Actionable Steps

  17. Pingback: Boost Your Blog’s SEO Mojo with These 6 Simple, Actionable Steps | Theseoservice

  18. Hi Marty
    I know this is an old post, but I have an issue with the Big button for the Facebook share and I can see you have the same issue here in this blog. It is just one big blue square. Any idea on how to fix that? For the time being I have removed that button on my sharebar.

Leave a Reply

Your email address will not be published. Required fields are marked *