2014-01-30 70 views
1

我试图将Google+分享链接显示在个性化内容旁边,但它实际上并不适合我,它让我发疯;这应该是一项基本任务。Google+参数无法正常工作

我在Google+上使用了丰富的代码片段生成器,它生成了一些元标记,但我的共享链接没有提取任何数据。

我在做什么错?它不会显示我在Google plus分享链接中链接的描述或图片。

感谢

<!-- Update your html tag to include the itemscope and itemtype attributes. --> 
<html itemscope itemtype="http://schema.org/Article"> 

<!-- Add the following three tags inside head. --> 
<meta itemprop="name" content="Tamar"> 
<meta itemprop="description" content="dioshiofdhwai"> 
<img itemprop="image" src="www.onthisdayindigital.com/image1.png" /> 

<head> 
<title>Tamar SEO, Social & Mobile | OnThisDayInDigital</title> 
<link rel="stylesheet" type="text/css" href="design.css" /> 
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;"> 
<link href="/icon.gif" type="image/ico" rel="icon"> 
<link rel="image_src" href="/icon.gif" /> 
    <!-- Place this tag where you want the share button to render. --> 
<div class="g-plus" data-action="share"></div> 

<!-- Place this tag after the last share tag. --> 
<script type="text/javascript"> 
    (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); 
    })(); 
</script> 
</head> 
</html> 

回答

0

我不知道这是问题,但我想指出,你没有把他们的head标签内的评论说,你应该。你把它放在标签之前。

尝试在标签内移动它,看看它是否有效。

+0

我是如何错过的,无论它还没有工作。感谢您的输入 – Hashey100