如何包含“itemCondition”和“徽标” schema.org产品片段中的schema标签? [英] How to include "itemCondition" and "logo" schema tags in the schema.org product snippets?

查看:135
本文介绍了如何包含“itemCondition”和“徽标” schema.org产品片段中的schema标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将schema.org片段添加到我的产品页面。我的客户要求我在产品单页中显示以下schema.org标签。b / b
$ b

1)itemCondition

2 )徽标(仅显示品牌图片网址)

Schema.org仅给出每个标签的标签描述,但没有提及应该如何实施大多数标签。目前我的摘录显示如下

 < div itemscope itemtype =http://schema.org/Product> 
< span itemprop =name> BOWERBRIDGE INSULATED JKT< / span>


< div itemprop =offersitemscope itemtype =http://schema.org/AggregateOffer>
< span itemprop =lowPrice> $ 400< / span>
至< span itemprop =highPrice> $ 600< / span>
from< span itemprop =offerCount> 20< / span>卖家
< / div>
< / div>

任何人都可以让我知道如何将我的客户端所需的标签包含到上面的代码片段中。 p>

我的客户需要以下schema.org标签。



<1> itemCondition

<2>徽标(仅显示品牌图片网址)

编辑

 < div itemscope itemtype =http://schema.org/Product> 
< meta itemprop ='logo'content ='http://rstest.mydomain.com/images/userfiles/logos/stone-island.png'/>

< span itemprop ='itemCondition'>< br />
•可移动的手臂徽章标志< br />
•翻过霍迪< br />
•面板口袋< br />
•定期适合< br />
•拉链侧袋< br />>
•长袖< br />
•100%棉花< br />
•40度清洗< br />
< br />
591565220< br />
< br />
查看< a href =http://www.mydomain.com/mens/hoodies/target =_ self>男士帽衫< / a>
< / span>
< / div>

受众群体代码

 < div itemscope itemtype =http://schema.org/Product> 
< span itemprop =audienceitemscope itemtype =http://schema.org/PeopleAudience>
< meta itemprop =gendercontent =male/>
< / span>
< / div>

错误:页面包含不属于模式一部分的属性性别 logo :取代<$ c $> c> meta 元素应该使用链接元素

 < link itemprop =logohref =http://rstest.mydomain.com/ images / userfiles / logos / stone-island.png/> 

对于 itemCondition :您不应该使用< a href =http://www.w3.org/TR/2013/CR-html5-20130806/text-level-semantics.html#the-br-element =nofollow noreferrer> br 元素。为商品编号使用 ul div 以及 p

对于观众查看我们的完整范围...。

http://schema.org/PeopleAudiencerel =nofollow noreferrer> PeopleAudience 不支持 gender 属性(仅限于 People ) 。您可能是指 suggestedGender 属性


I'm trying to add schema.org snippets to my products page. My client requested me to display following schema.org tags in the products single page

1) itemCondition

2) logo (display only the brand image URL)

Schema.org gives only the tags description for each tags but haven't mentioned how it's should to be implement for most tags. Currently my snippet display as follows

<div itemscope itemtype="http://schema.org/Product">
    <img itemprop="image" src="/uploads/pen102-a13-olv_1.jpg" />
    <span itemprop="name">BOWERBRIDGE INSULATED JKT</span>


    <div itemprop="offers" itemscope itemtype="http://schema.org/AggregateOffer">
      <span itemprop="lowPrice">$400</span>
        to <span itemprop="highPrice">$600</span>
        from <span itemprop="offerCount">20</span> sellers
    </div>
</div>

Could anyone please let me know how can I include the my client required tags to above snippet.

My client required following schema.org tags.

1) itemCondition

2) logo (display only the brand image URL)

EDIT

<div itemscope itemtype="http://schema.org/Product">
    <meta itemprop='logo' content='http://rstest.mydomain.com/images/userfiles/logos/stone-island.png'/>

    <span itemprop='itemCondition'><br />
        • Removable arm badge logo<br />
        • Pull over hoddy<br />
        • Panel pocket<br />
        • Regular fit<br />
        • Zip side pockets<br />
        • Long sleeve<br />
        • 100% Cotton<br />
        • 40 Degree wash<br />
        <br />
        591565220<br />
        <br />
        View our full range of <a href="http://www.mydomain.com/mens/hoodies/" target="_self">Mens Hoodies</a>
    </span>
</div>

Audience code

<div itemscope itemtype="http://schema.org/Product">
  <span itemprop="audience" itemscope itemtype="http://schema.org/PeopleAudience">
    <meta itemprop="gender" content="male"/>
  </span>
</div>

Error: Page contains property "gender" which is not part of the schema.

解决方案

For logo: Instead of the meta element you should use the link element:

<link itemprop="logo" href="http://rstest.mydomain.com/images/userfiles/logos/stone-island.png" />

For itemCondition: You should not use br elements here. Use a ul for the features, div for the article number, and p for the "View our full range …".

For audience: PeopleAudience doesn’t support the gender property (it’s for People only). You probably mean the suggestedGender property.

这篇关于如何包含“itemCondition”和“徽标” schema.org产品片段中的schema标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆