☰ Navigation

Pixel Internet Blog

Offers - Resources - News

Adding The Google +1 Button To Your WordPress Website

If you’ve been following the activities of Google in recent months (or you’re an SEO engineer), you’ll have undoubtedly come across the +1 concept recently introduced by the search giant.

Initially an experiment in utilising user-based recommendations to inform search results, Google has rolled out the +1 button more comprehensively by allowing the integration of a +1 button into your blogs and websites.

There will undoubtedly be numerous WordPress plugins in the coming months featuring simple +1 button integration, but in the meantime here’s a simple guide to adding the Google +1 button to your WordPress-based blogs and websites yourself in two simple steps:

1. Editing your WordPress theme files

You will need to add a line of Javascript to your WP theme files, but this isn’t as difficult as it may sound to some people. Simply login to your WordPress dashboard and navigate to Appearances > Editor.

On the next screen, locate and select ‘Footer.php’, which should reveal the coding for your website’s footer. You’ll need to locate the closing body tag, which will look like this: </body>

Then simply paste in the following line of Javascript immediately before the closing body tag:

<script type=”text/javascript” src=”http://apis.google.com/js/plusone.js”></script>

To help you out, here’s a screenshot of what you’ll need to do:

Once you’ve placed the code in the right place, simply hit ‘update’ and you’re ready to move on to the next step.

2. Adding the +1 button to your website

Once the javascript is added to your Footer.php file, you’ll be able to add the +1 button with a simple shortcode:

<g:plusone></g:plusone>

This can be added to individual posts and pages easily, by simply adding the shortcode into the body of the post or page. However, you might find it a better option to add the button into the sidebar of your blog, post, page, etc. To do this, simply navigate to Appearances > Widgets in your WordPress dashboard.

From here, you can simply select a widget market ‘Text’, drag it into the appropriate sidebar section and add the +1 shortcode. This will give you a permanent +1 button in the corresponding sidebar, allowing users to recommend your site via the new Google button.

If you have any questions at all on installing the +1 button on your own WordPress website, simply leave us a comment with the issues you’re having and we’ll do our best to help.


Comments

Comments are closed.

Want to find out more? Let’s chat