开发者

Google+ snippet description and title of page not showing

开发者 https://www.devze.com 2023-04-02 02:15 出处:网络
This is my code which i have added inside head of my website eravikant.com <meta itemprop=\"name\" content=\"MySMSBuddy\">

This is my code which i have added inside head of my website 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.开发者_Go百科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>

and code which which will show google+ icon for +1 is

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

But, when i click on +1. then only image of my website has share not description and title..

Need help !!!


You need itemscope itemtype="http://schema.org/Article" in your HTML tag:

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

精彩评论

暂无评论...
验证码 换一张
取 消