문제

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 a 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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top