Google +1 只计算我的主页而不是所有子页面?
我在我开发的网站上实现了相当新的 Google +1 按钮。它位于我的页脚中,如果人们认为这是一个很酷的页面,我希望人们可以+1。自从我实现它以来,已经有几个人在主页上点击了它。
但是,当单击我页面的子网站的链接或 URL 中包含例如 #hash 时,页脚中的 +1 按钮会丢失计数并从零重新开始。当然,这就是 +1 按钮的目的,即为网站上的每篇文章和每个页面“点赞”或“+1”。
我想知道是否可以在我的整个网站上拥有相同的全局按钮数量?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试做的是使用 plusone 标签中的 href 属性。像这样;
这样你就可以将 url 强制输入 plusone。只是一个远景,不确定是否有效。有关 href 属性的更多信息,请参阅
What you could try to do is use the href attribute in the plusone tag. Like this;
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.