Adding The Google +1 Button To Your WordPress Website

Google have just launched their “+1″ button. The +1 button is shorthand for “this is pretty cool” or “you should check this out.” Click +1 to publicly give something your stamp of approval.

Your +1′s can help friends, contacts, and others on the web find the best stuff when they search.

How to add the Google +1 button to your WordPress website

Simply Go to the “Appearance” -> “Editor” and locate the footer.php file in your template files listing on the righthand side of your screen. Look through the file until you see </body>, then paste the JavaScript below just above:

<script src="https://apis.google.com/js/plusone.js" type="text/javascript"><!--mce:0--></script>

After the JavaScript snippet has been added to your websites footer.php file, users then need to add the following snippet of code whereever they would like the button to appear:

<g:plusone size></g:plusone>

The above snippet will display the “standard” size button which is 24px. There are three other options: Small (15px), Medium (20px) and Tall (60px).

To utilise the other sized buttons, you simply adjust the button code snippet by inluding a size specification eg.

<g:plusone size="medium"></g:plusone>

Google have created a nice little code generator to help you make the code for your website here: Create a custom +1 button and full documentation can be found here.

Similar Posts:

    None Found

Tags: Google +1

About Tristan