Yesterday, I post it to show how to add a Google +1 button.
It is easy when you just want the button for the page or URL which contain this button.


There is still some case like this. I have a page with the list of Posts. I would like to add +1 button to every post link.

Not hard, just add URL into the code:

&lt;g:plusone href=""&gt;&lt;/g:plusone&gt;

So I put a +1 button on the navigation bar on the every page, which all point to my blog root.
I used code as below.

&lt;g:plusone href=""&gt;&lt;/g:plusone&gt;

David Yin

David is a blogger, geek, and web developer — founder of If you like his post, you can say thank you here

Leave a Reply

Your email address will not be published. Required fields are marked *