【发布时间】:2014-12-12 09:08:58
【问题描述】:
我正在尝试为我的产品页面创建 Google Rich Snippets。
我使用
创建了一个产品<div itemscope="" itemtype="http://schema.org/Product">
...
</div>
在这个产品中,我有一个优惠,创建于
<div itemscope="" itemtype="http://schema.org/Product">
<div itemprop="offers" itemscope="" itemtype="http://schema.org/Offer">
...
</div>
</div>
我想将卖方属性(一个组织)添加到报价中,但是,我的 HTML 结构在产品下而不是报价下有卖方。
<div itemscope="" itemtype="http://schema.org/Product">
<div itemprop="offers" itemscope="" itemtype="http://schema.org/Offer">
...
</div>
<div itemprop="seller" itemscope="" itemtype="http://schema.org/Organization">
...
</div>
</div>
但是,这似乎并不能让 Google 结构化数据测试工具满意。
然后我尝试在组织上使用itemref 并在报价中使用meta-tag
<div itemscope="" itemtype="http://schema.org/Product">
<div itemprop="offers" itemscope="" itemtype="http://schema.org/Offer">
<meta itemprop="seller" itemref="provider">
...
</div>
<div id="provider" itemscope="" itemtype="http://schema.org/Organization">
...
</div>
</div>
但它似乎仍然不承认卖方是组织。
我做错了什么?
【问题讨论】:
标签: html microdata rich-snippets google-rich-snippets