FRP Google +1 For Jetpack Sharedaddy WordPress Plugin
This is a small plugin to enable you to add Google’s new +1 button into the Jetpack Sharedaddy plugin.
What does it do?
It adds a link to the plusone.js script hosted by Google. Then adds a DIV containing a comment comprising of the URL of the current post, page or part of the loop in the case of post listings. A small jQuery script then reads the comment and replaces a placeholder item in your Sharedaddy setup (see below).
Setup
- Setup a page in your blog called Google +1 (or something similar). Preferably a page outside of the site structure as it will only be used as a fallback for those visitors not running JavaScript. You can see mine here as an example. Feel free to copy the text on my +1 page.
- Download and install the FRP Google +1 For Sharedaddy plugin.
- Add a new service on the Sharedaddy admin page. The label needs to be +1, the plugin looks for this and will not work with any other label. In the URL box add a link to the page added in step 1, mine is http://www.diturner.co.uk/google-plus-1. Finally add a URL for the icon. I have supplied a simple +1 icon, the URL will be http://www.domain.co.uk/wp-content/plugins/frp-google-plus-1-for-sharedaddy/google_plus_1.png.
Updates
Version 1.1
Changed the $-function to jQuery, this seems more compatible with iPhone browsers. Since the +1 button isn’t officially supported for mobile browsers it now breaks properly, i.e. it doesn’t display :P
