Google Plus嵌入式帖子 [英] Google Plus Embedded Post

查看:104
本文介绍了Google Plus嵌入式帖子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将Google Plus ses增加到我在此处的共享帖子: https://plus. google.com/115561497496668104701/posts/MiZJMK9KHFX ,但随后我将该帖子嵌入到我的网站 http://zippyviews .com/Gviews.html 那里,所以我想增加Google+ ses现在的147,但是当我将我的网站添加到google plus交换网站时,人们不会点击g +按钮,而我只想保留它仅使用Google +按钮的页面不完整如果仅使用Google +按钮的页面,如何提取该按钮代码?

Im trying to increase Google Plus ses to my shared post its here : https://plus.google.com/115561497496668104701/posts/MiZJMK9KHFX but than i embedded that post to my website http://zippyviews.com/Gviews.html there so what i want to increase that Google + ses now its 147 but when i add my website to google plus exchange websites people are not clicking g + buttons and i want to only leave on that page only google + button not full post only google + button how to extract that button code?

推荐答案

我一直在寻找有关Google plus嵌入式帖子的帮助,而BetaCoder放置的代码也非常适合该帖子.

I was looking for some help with the embedded post in Google plus and the code that BetaCoder put works perfectly with the post as well.

<div class="g-post" data-href="https://plus.google.com/109813896768294978296/posts/hdbPtrsqMXQ"></div>

(function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/platform.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();

http://jsfiddle.net/WbUfW/14/

这篇关于Google Plus嵌入式帖子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆