How to include “itemCondition” and “logo” schema tags in the schema.org product snippets?

时光毁灭记忆、已成空白 提交于 2020-01-25 11:43:07

问题


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.


回答1:


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.




回答2:


You can use Structured Data Helper to do the tagging for you (at least for logo):

https://www.google.com/webmasters/markup-helper/u/0/

If you play around with other properties similar to itemCondition, you can get idea of how the markup should look like.




回答3:


This worked for me:

<span itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
  <meta itemprop="name" content="http://example.com"/>
  <meta itemprop="url"  content="http://example.com/myurl"/>
  <div itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">
    <meta itemprop="url" content="http://example.com/logo.png"/>
  </div>
</span>


来源:https://stackoverflow.com/questions/19643218/how-to-include-itemcondition-and-logo-schema-tags-in-the-schema-org-product

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!