javascriptpluginsgoogle-plus-one

Google +1 Count for my homepage not for all subpages?


I implemented the fairly new Google +1 Button to a site I've developed. It sits in my footer and I want people to just +1 this page if the think it's a cool page. Since I implemented it already a few people clicked it on the homepage.

However when clicking a link to a subsite of my page or the URL has an e.g., a #hash in it the +1 Button in my footer looses his count and start again with zero. Of course that's the purpose of the +1 Button to "like" or "+1" each article and each page on a website.

I wonder if it's possible to have the same global count of the button on my entire website?


Solution

  • What you could try to do is use the href attribute in the plusone tag. Like this;

    <g:plusone size="medium" href="http://www.mydomain.com"></g:plusone>
    

    This way you can force an url into the plusone. Just a long shot, not sure if it will work. More about the href attribute is explained here.