schema.org

Correct 'warranty' itemprop syntax

江枫思渺然 提交于 2019-12-06 16:07:08
What syntax is correct for warranty itemprop in https://schema.org/Offer ? This one <meta itemprop="warranty" content="2ANN" /> or … <meta itemprop="warranty" content="2 ANN" /> or with hierarchy … <span itemprop="warranty" itemscope itemtype="https://schema.org/WarrantyPromise"> <span itemprop="durationOfWarranty" itemscope itemtype="https://schema.org/QuantitativeValue"> <span itemprop="value">2</span> years <meta itemprop="unitCode" content="ANN" /> </span> </span> The warranty property expects a WarrantyPromise as value: Values expected to be one of these types WarrantyPromise So your last

How to correctly reference Microdata item from meta tag in header?

天涯浪子 提交于 2019-12-06 15:25:13
问题 <!DOCTYPE html> <html itemscope itemtype="http://schema.org/WebSite"> <head> <meta itemprop="creator" itemscope itemref="mdFoo"> </head> <body> <div id="mdFoo" itemscope itemtype="http://schema.org/LocalBusiness"> <meta itemprop="name" content="Foo comp"> <meta itemprop="telephone" content="0"> <meta itemprop="legalName" content="Foo comp Ltd"> <meta itemprop="url" content="http://www.foo.com"> <meta itemprop="email" content="info@foo.com"> <div itemprop="address" itemscope itemtype="http:/

Schema warning about QAPage on Question type

北战南征 提交于 2019-12-06 13:53:18
I have a page with multiple Question and Answers and I'm getting the following warning on each question: Missing a QAPage markup item on page to which this item should be associated. This is example markup: <div itemscope="" itemtype="http://schema.org/Question"> <h3 class="question" itemprop="name text">This is the question?</h3> <div class="answer" id="IdForTheAnswer" itemprop="acceptedAnswer" itemscope="" itemtype="http://schema.org/Answer"> <div itemprop="text"> <p>This is the answer text.</p> </div> </div> </div> And below is the example warning from https://search.google.com/structured

Using sitelinks search bar google

瘦欲@ 提交于 2019-12-06 13:14:11
I am following this guide by Google to add a sitelinks search bar on my website. The structured data markup tool shows everything to be correct. But: The search bar hasn't appeared in the search results for my website. Google has indexed the page www.example.com/search?q=%7Bsearch_term_string%7D instead: I have the exact same code as explained in the example, except the site URL of course. What am I doing wrong? Or is this expected behaviour? <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "WebSite", "url": "http://www.example.com/", "potentialAction": { "@type"

Schema.org for closed on a holiday / given date

落爺英雄遲暮 提交于 2019-12-06 13:01:07
问题 How do I properly markup holiday hours when a business is closed on the holiday? Normal holiday hours markup example: <li itemprop="openingHoursSpecification" itemscope="" itemtype="http://schema.org/OpeningHoursSpecification" class="holidayHours"> <span itemprop="validFrom" content="2014-05-26">Memorial Day Hours, Monday, May 26th: </span> <span itemprop="validThrough" content="2014-05-26"></span> <span itemprop="opens" content="09:00">9 am</span> - <span itemprop="closes" content="15:00">3

Multiple contexts in JSON-LD

♀尐吖头ヾ 提交于 2019-12-06 11:58:48
问题 How can I access two seperate vocabs in JSON-LD, can I use 2 @contexts? e.g. { "@context": { "@vocab": "http://schema.org/", "first_name": "givenName", "last_name": "familyName } "@context": { "@vocab": "http://our_own_schema.org/", "Time": "inputTime" } } 回答1: You can provide multiple @context . If they contain duplicated terms, the most recently defined term gets used. See examples 27 and 28. But if you want to mix vocabularies within the same object, this doesn’t work. To allow mixing

Using Schema.org itemprop on Facebook OG meta tags

走远了吗. 提交于 2019-12-06 11:43:56
问题 Right now I'm using itemprop COMBINED with Facebook Open Graph <meta> tags like the following: <html class="no-js" itemscope="itemscope" itemtype="http://schema.org/WebPage"> // ... <meta property="og:type" content="website" /> <meta itemprop="name" property="og:title" content="My Title" /> <meta itemprop="image" property="og:image" content="http://example.com/socialimage.jpg" /> <meta itemprop="url" property="og:url" content="http://example.com" /> <meta itemprop="description" property="og

Error: Page contains property “query-input” which is not part of the schema

為{幸葍}努か 提交于 2019-12-06 11:40:43
I get this error from the Google RichSnippets testing tool : Error: Page contains property "query-input" which is not part of the schema. But where did I make a mistake? HTML : <div id="dkAjaxSearch"> <input id="ajaxSearch" type="text" value="" name="search_term" itemprop="query-input"> Press Enter to search </div> JSON-LD : <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "WebSite", "url": "https://domain.com/", "potentialAction": { "@type": "SearchAction", "target": "http://domain.com/search/{search_term_string}", "query-input": "required name=search_term

Rating is showing numbers instead of stars

三世轮回 提交于 2019-12-06 11:10:50
I don't know why my website's Schema.org markup is showing number and characters instead of stars. For example, it's showing "3 out of 5" instead of "***". How can I fix it? I'm using WordPress and All In One Schema Rich Snippets plugin. Suffered with same problem. Finally after lot of search and trial I came up with this solution. This gets the template where the rating is displayed from. But it displays like this: Rated 4.50 out of 5 based on 2 customer ratings (2 customer reviews) <div class="rating-custom"> <?php wc_get_template( 'single-product/rating.php' ); ?> </div> Then paste this css

Schema.org setup for related products?

戏子无情 提交于 2019-12-06 07:20:08
问题 I would like to setup Schema.org markup for related products. I have tried this code but I have doubt in my mind: itemprop="isRelatedTo" itemscope itemtype="http://schema.org/Product" My product page is https://www.amigotrekking.com/everest-base-camp-trek.html 回答1: If it’s a "functionally similar" product, use the isSimilarTo property. If it’s a "consumable" for another product, use the isConsumableFor property. If it’s an "accessory or spare part" for another product, use the