Google plus 1 Installed
Posted: 1st July 2011
In the spirit of continuing to experiment, I’ve installed Google +1 on to this site.
Given this site has both Facebook “like” and Google “+1″ buttons, I can safely say that
Google +1 is much easier to install and get working with minimal change.
There’s full documentation listed here, Google +1 Documentation, but to summarize what the Google blog post is about.
Add this code to your
section<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
Then wherever you want a +1 button, add the following code
<g:plusone></g:plusone>
There are a few changes you can make to this snippet to make it do different things.
Currently I have 2 +1 buttons on this page (1 for the main site under my domain name, and one for this particular blog post, next to the title). This is very simple to do, you add a href to the above snippet detailed below.
<g:plusone href="http://www.mywebsite.com.au/mypage.html"></g:plusone>
If you don’t include a href then it will default to the URL in the browser.
You can change the sizes of the button just as easily, the full list of sizes available is here, but they range from 24px by 15px to 105px by 24px, so there will be a +1 button that will fit your website’s needs.
In the meantime, get +1ing! err Plusing! .. Plus?
(What we’re going to call it?)
