[email protected] +44 20 7193 0206
Uncategorized

Google Plus 1 for Blogger

11th July, 2011
0

Google’s new Plus One tool can be found here http://www.google.com/webmasters/+1/button/index.html, but as with the Facebook Comments Profile, unless you install it properly, it’s going to count every Blog post the same if you install it as is.

The code below shows the proper way it should be installed.

You need to edit your Blog in the Design section and click the Edit HTML and then click the small check box that allows you to ‘Expand Widget Templates’.

Next you can scroll down and look for the </data:post.body> which signifies the end of the Post.

Insert the following and you should be good to go:

<b:if cond=”data:blog.pageType != “static_page””></b:if> <div style="float: left; margin: 0px 5px 0px 0px;"> <script src=”https://apis.google.com/js/plusone.js” type=”text/javascript”> <g:plusone count=’true’ expr:href=’data:post.url’ size=’tall’/></div> </b:if>

That’s about it… the key is the expr:href=’data:post.url’ bit, that tells Blogger to only create the action for that specific post, even if there are multiple posts on a single page.

Please feel free to check out the previous post on Facebook Comments.

Comments

comments