How to add Google +1 to your blog

With the arrival of Google +1 on the social media scene, bloggers need to add yet another button to their sites to stay up to date.  And in the case of Google+, it’s not just another start-up site that may or may not become big, it’s Google.  So there is a certain argument for going along it with whether or not you like the system.  After all, we all want our sites to rank nicely, don’t we?

I’ve seen various ways of adding the Google +1 button to themes, but probably the easiest for anyone who doesn’t want to get into changing their theme by hand is to use the AddThis plug-in which I have written about before.

If you are already using the plug-in, then you will probably need to upgrade to the latest version.  Unfortunately at some time the CSS classes have been changed, so this may mess up your alignment at first.

Once you have the latest version installed, you can choose a simple Google +1 icon and then the red “share” icon for the list of AddThis services.

Alternatively, you can use an option called “Build your own” where you specify the services that you want to have as buttons.  In this case you need to use the service code “Google_plusone” to get the +1 to appear.  Using “Google” alone will show a Google logo, but will send the link to the Google Bookmarks system!

You can also differ between the buttons at the top and bottom of a post, so you could add Google +1 at the top and put the rest at the bottom and see how your readers react to this.

By the way, when I started adding Google +1 to my sites it worked on some, and not on others.  In one case I needed to add the following code to my header.php file:

<script type=”text/javascript” src=””></script>

and in another I had to add this code to my functions.php file:

remove_action(‘wp_head’, ‘wp_generator’);

So even with the AddThis plug-in it is not always easy to add Google +1 to a site.  But this has a lot to do with the way that Google +1 works from Google’s side.  It’s still easier than doing it all from scratch.

If you can’t get it to work on your site, use the contact form to let me know and we can try and find a solution for you!

About Graham Tappenden

Graham Tappenden is a blogger from Germany. He has written code for WordPress themes since 2006 and been creating websites since 1994.
This entry was posted in Plug-ins and tagged , , , , , , , . Bookmark the permalink.

Leave a Reply

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