Joe*_*oel 7 microdata rich-snippets schema.org
我需要一些帮助来获取我的网站上的一些丰富网页摘要
我按照schema.org上的说明插入了评论微数据http://schema.org/docs/gs.html#advanced_missing使用星形图像进行评级和审核计数文本,但是使用测试工具对其进行测试它什么都没显示. 我们使用微数据进行评论的示例页面.
这就是我用过的东西
<div itemprop="reviews" itemscope itemtype="http://schema.org/AggregateRating">
<A HREF="javascript:an();"><img src="/images/stars/4.5.gif" border=0></a>
<meta itemprop="ratingValue" content="4.5" />
<meta itemprop="bestRating" content="5" />
<BR>
<span class="bottomnavfooter">
<A HREF="javascript:an();">Read (<span itemprop="ratingCount">70</span>) Reviews</A
</span>
</div>
Run Code Online (Sandbox Code Playgroud)
然后,我创建了一个静态测试页面,并使用Google在此处提供的说明进行了一些更改http://www.google.com/support/webmasters/bin/answer.py?answer=172705(这与我在架构中找到的不同.组织!!)但测试仍然只返回产品名称而不是价格或评论.
这是我的测试页 - 你能不能看看我哪里出错了
非常感谢!!
上面的代码片段会失败,因为它有一个itemprop
for aggregateRating
,但没有包含在itemscope
.它也没有帮助你的最终锚关闭标签丢失了>
,但我想这只是一个意外,当你将代码复制到SO.
另一个问题主要是因为schema.org网站上的例子是错误的(我已经提交了一个错误报告).他们提到itemprop="reviews"
而不是itemprop="aggregateRating"
.代码看起来应该如下所示:
<div itemscope itemtype="http://schema.org/Offer">
<span itemprop="name">Ray-Ban 2132 New Wayfarer Sunglasses</span>
<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
<a href="javascript:an();"><img src="/images/stars/4.5.gif" border=0></a>
<meta itemprop="ratingValue" content="4.5" />
<meta itemprop="bestRating" content="5" />
<br />
<span class="bottomnavfooter">
<a href="javascript:an();">Read (<span itemprop="ratingCount">70</span>) Reviews</a>
</span>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
2919 次 |
最近记录: |