Google+代码段说明和页面标题未显示

时间:2011-09-04 10:41:59

标签: google-plus google-plus-one

这是我在我的网站eravikant.com

的头部添加的代码
<meta itemprop="name" content="MySMSBuddy">
<meta itemprop="description" content="Description of my webpage">
<meta itemprop="image" content="http://eravikant.com/images/image.png">

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

和将显示+1的Google +图标的代码是

<div align="right"><g:plusone size="medium" callback="MySMSBuddy" href="http://eravikant.com/images/image.png"></g:plusone></div>

但是,当我点击+1时。然后只有我的网站的图像没有描述和标题..

需要帮助!!!

1 个答案:

答案 0 :(得分:2)

HTML标记中需要 itemscope itemtype =“http://schema.org/Article”

<html itemscope itemtype="http://schema.org/Article">