schema.org

Google sitelinks search box snippet doesn't work

喜夏-厌秋 提交于 2019-12-13 14:52:57
问题 I'm trying to implement the snippet for the sitelinks search box on Google, according to the documentation in https://developers.google.com/webmasters/richsnippets/sitelinkssearch. My implementation is the following: <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "WebSite", "url": "http://www.petmd.com/", "potentialAction": { "@type": "SearchAction", "target": "http://www.petmd.com/search?Q={Q}", "query-input": "required name=Q" } } </script> The target works

Do my web pages need to be in HTML5 to use the Data Highlighter or Schema.org Microdata?

只愿长相守 提交于 2019-12-13 08:57:17
问题 Do my web pages need to be written in HTML5 to use the Data Highlighter? Do my web pages need to be written in HTML5 to use the Schema.org Microdata? 回答1: Not sure about the Data Highlighter, but yes, in order to use Microdata (whether with schema.org or any other vocabulary) you need to use HTML5. Microdata was originally part of HTML5 (it was removed from the spec some time ago, and now exists separately, but is still only valid in HTML5). However you can still use schema.org in non-HTML5

Is the “content” attribute valid for the <span> tag > if so is it a good practice?

你离开我真会死。 提交于 2019-12-13 07:33:58
问题 Is the "content" attribute valid for span tag? If so is it a good practice? I'll be applying microdata (schema.org) on my site pages. I want to add microdata on some elements of my page. This is my current code: <span itemscope itemtype="http://schema.org/Product"> <a itemprop="url" class="list-items" href="/product/286/cryptomate64-usb-cryptographic-token/" title="CryptoMate64 USB Cryptographic Token"> <span itemprop="name">CryptoMate64 USB Cryptographic Token</span> <span class="hidden">

Changing schema.org microdata with jQuery?

僤鯓⒐⒋嵵緔 提交于 2019-12-13 05:24:47
问题 Due to Googlebot's recent advances with interpreting JS, is it now possible to change schema.org microdata (ie. itemprop ) with jQuery? There's a similar question here on SO: Is it possible to change Microdata itemprop with jQuery? -- but it was from before Googlebot's recent advances mentioned above. 回答1: schema.org, RDF, Microdata, etc. are designed to provide context and information for machines . It provides them a means of accessing the information without having to execute client side

How to mark only product categories?

℡╲_俬逩灬. 提交于 2019-12-13 04:56:41
问题 How do I have to mark my website product categories? … only categories … Maybe with category from Offer ? Something like: <div itemscope itemtype="http://schema.org/Offer"> <a itemprop="category" href="category1.php">My category 1</a> </div> 回答1: You should not specify category on an a element. The value would be the URI ( category1.php ), not the content ( My category 1 ). category expects a value that is either text or another item. So if you want to provide text, you could use something

Where to put schema.org tags in HTML page?

主宰稳场 提交于 2019-12-13 04:39:54
问题 Where should I put schema.org tags? I have 3 options: at detail page of article at category page where are articles of category at search page Should I put schema.org tags on all these pages or? 回答1: You can use Schema.org on all pages. Various consumers might find it useful. Why should they have to visit a specific page to see your Schema.org markup for content they already see? Just make sure that you don’t create several items for the same thing on the same page, unless you denote them as

Site name in Google search results for multi-language websites

对着背影说爱祢 提交于 2019-12-12 22:13:17
问题 Using Schema.org, I can set the name for my website so it’s visible in Google Search: https://developers.google.com/structured-data/site-name Example: <script type="application/ld+json"> { "@context" : "http://schema.org", "@type" : "WebSite", "name" : "Your WebSite Name", "alternateName" : "An alternative name for your WebSite", "url" : "http://www.your-site.com" } </script> What if I have multi-language website? 5 languages → 5 index pages, e.g.: http://www.example.com/en/ Is it right to

Google SDTT: “The property 'availability' is not recognized by Google for an object of type Product”

有些话、适合烂在心里 提交于 2019-12-12 21:03:57
问题 Situation: need to add the availability property to a product page. Schema.org recommends this format for Microdata: <link itemprop="availability" href="http://schema.org/InStock" />In stock I'm combining it with the code on our site: <li> <i class="fa fa-check-square-o">  <link itemprop="availability" href="http://schema.org/InStock"> <span>In Stock</span> </i> </li> Problem: Google Structured Data Testing Tool reports: http://schema.org/InStock (The property availability is not recognized

What exactly are pointers in Schema.org and how to use them with JSON-LD?

*爱你&永不变心* 提交于 2019-12-12 19:18:12
问题 The schema.org docs refer sometimes to "pointers". E.g. Product schema has the property isSimilarTo . I do understand, that I could use a Product or a Service directly. E.g.: <script type="application/ld+json"> { "@context": "http://schema.org/", "@type": "Product", "name": "BMW", "isSimilarTo": { "@type": "Product", "name": "Mercedes Benz" }, "offers": { "@type": "Offer", "priceCurrency": "EUR", "price": "100000.00" } } </script> Is this the only and the correct way using and interpreting

Schema.org linking multiple startdates to one event

空扰寡人 提交于 2019-12-12 18:54:33
问题 I am new to rich snippets and schema.org markup. I would like to implement it on one site but the layout is strange: startDate; location; 3 categories of Prices; multiple startDates; name of the event; description. Could this fact be an obstacle for including the markup? Moreover I am trying to find out examples how to create schema.org definition for one and the same event with multiple startDates but seems there is no spec for this. Do you know how can I do it? I have tested something but