How To Add The Google +1 Button To Your Website

Written by on June 5, 2011 in WordPress Tutorials - 4 Comments

I previewed the Google +1 button a few months; Google’s answer to the Facebook Like. It’s only recently that I have started seeing the button on websites and blogs.

When larger websites start adopting it, most others are not too far behind, therefore it’s worthwhile adding the button to your website so that visitors can recommend your content. Adding the button to your website is very easy.

All you have to do is copy some JavaScript code over to your header (or before the closing body tag) and then place a short piece of code where you want the button to appear on your page. Google allow you to create a custom button that is 15 pixels (small), 20 pixels (medium), 24 pixels (standard) or 60 pixels in height (tall).

As you would expect, some nice WordPress developers have released plugins that automatically insert the +1 button into your posts. Those of you who prefer to use a plugin instead of hard coding it into your website should try out The Google +1 plugin or
Google +1 Button plugin for WordPress.

I’m personally going to wait until the fantastic JetPack plugin is automated with it (I have emailed them to ask when it will be integrated).

If you are unsure about integrating the button on your site, please let me know and I’ll do my best to help :)

Kevin

Links:

About

Kevin Muldoon is a Scottish webmaster and blogger who currently lives in Bogota, Colombia. He has an unhealthy obsession with trying out new WordPress themes and plugins and spends too much time in the WordPress Forums.

Post comment as twitter logo facebook logo
Sort: Newest | Oldest

Where in the Wordpress code would you add this so that it appears on posts and not just on the main or home screen sidebars?

Have a look at Three Ways To Display Your Latest Google+ Updates On WordPress. That should point you in the right direction.

Hey Kevin, did the good folks that develop Jetpack say when they were going to integrate this feature? or when the next update was going to be?

They haven't replied to me as yet. It was last updated about 44 days ago so would expect a minor upgrade within the next month (though this is just a guess).