schema.org

Image missing and required - Wordpress AMP Structure doesn't add Image attribute

白昼怎懂夜的黑 提交于 2019-12-20 01:44:08
问题 When validating my wordpress posts using Google's Structured Data Testing Tool, I get the following error: "Image: missing and required" I have the official wordpress AMP plugin installed that generated the AMP pages for me. The problem is that it doesn't popular the "image" attribute for BlogPosting . In the plugin there is a code that I think should generate it, but it's not running anywhere: private function get_post_image_metadata() { $post_image_meta = null; $post_image_id = false; if (

How to markup the last non linking item in breadcrumbs list using JSON-LD

这一生的挚爱 提交于 2019-12-19 16:55:43
问题 I am using structured data for my breadcrumbs trail. I'm refering to this documentation: https://developers.google.com/structured-data/breadcrumbs I have built up a breadcrumbs list. I also display the last item that refers to the current page but this is not a link but just plain text. This is what my HTML markup looks like: <ol class="breadcrumb"> <li><a href="http://www.example.com/">Home</a></li> <li><a href="http://www.example.com/brands">Brands</a></li> <li class="active">My Brand</li>

Link `isRelated` schema.org to parent `Product` when not contained in child element

爱⌒轻易说出口 提交于 2019-12-19 11:46:29
问题 I'm trying to indicate multiple related products on a product page using schema.org microdata. But the child products are orphaned because they are not contained in the parent div. I tried using itemref but I must be using it incorrectly or it must be the wrong solution. ALSO, I cannot easily create a wrapper div or use the body element to create the parent. My ideal solution would be one that leaves the page structure as-is, and somehow links the "child product" divs to the parent. I thought

Omitting price property for sold products?

邮差的信 提交于 2019-12-19 10:50:55
问题 I'm adding Schema.org (using Microdata) to a product page. My client wants the price omitted for sold products - she doesn't want anyone to be able to see the price of sold products. However this was showing up as an error in the Microdata for 'price': check page in Google SDTT Obviously the average user will still not be able to see the price, but it's used by Google Shopping so might show up. Should I just put a price of 0? 回答1: It’s perfectly fine to have an Offer without a price . If

Defining multiple URLs within a Person

风流意气都作罢 提交于 2019-12-19 10:34:11
问题 I'm defining a Schema.org Person item on my website using Microdata. Most of it is self-explanatory. However, each mini profile on a summary page has three URLs - one which links to the Person's full ProfilePage , and two more for LinkedIn and Twitter. Do I define all three as URLs, or do I ignore the social media account URLs, because only the "read more" style link is actually the URL for that person? 回答1: For the link to the person’s profile page on your site, you should ‎definitely use

Product size: width, height and depth

自作多情 提交于 2019-12-19 08:22:28
问题 I'm using schema.org definition to represent a product. I have a doubt about product size: should I specify the unit of measure in the field? Here's my code (I need a separate span for "cm" to style it differently): <div itemscope itemtype="http://schema.org/Product"> <h1 itemprop="name">Product name</h1> Size: <span itemprop="width">60 <span>cm</span></span> <span itemprop="height">50 <span>cm</span></span> <span itemprop="depth">40 <span>cm</span></span> </div> Is this the correct way to

Product size: width, height and depth

馋奶兔 提交于 2019-12-19 08:21:30
问题 I'm using schema.org definition to represent a product. I have a doubt about product size: should I specify the unit of measure in the field? Here's my code (I need a separate span for "cm" to style it differently): <div itemscope itemtype="http://schema.org/Product"> <h1 itemprop="name">Product name</h1> Size: <span itemprop="width">60 <span>cm</span></span> <span itemprop="height">50 <span>cm</span></span> <span itemprop="depth">40 <span>cm</span></span> </div> Is this the correct way to

Mixing JSON-LD CollectionPage and Microdata `hasPart` of Schema.org

*爱你&永不变心* 提交于 2019-12-19 08:20:09
问题 The microdata markup below works perfectly, Google's structured data testing tool shows one CollectionPage and WebSite/WebPage as children. <body itemscope itemtype="https://schema.org/CollectionPage"> <span itemscope itemtype="https://schema.org/WebSite" itemprop="hasPart"> <a href="https://springfield-xxxx.us" itemprop="url">Official site of Springfield</a> </span> <span itemscope itemtype="https://schema.org/WebPage" itemprop="hasPart"> <a href="https://facebook.com/group/XXXX" itemprop=

Mixing JSON-LD CollectionPage and Microdata `hasPart` of Schema.org

走远了吗. 提交于 2019-12-19 08:20:01
问题 The microdata markup below works perfectly, Google's structured data testing tool shows one CollectionPage and WebSite/WebPage as children. <body itemscope itemtype="https://schema.org/CollectionPage"> <span itemscope itemtype="https://schema.org/WebSite" itemprop="hasPart"> <a href="https://springfield-xxxx.us" itemprop="url">Official site of Springfield</a> </span> <span itemscope itemtype="https://schema.org/WebPage" itemprop="hasPart"> <a href="https://facebook.com/group/XXXX" itemprop=

How to connect homepage and blog using cross-site structured data with Schema.org?

爷,独闯天下 提交于 2019-12-18 09:36:49
问题 I have a website, a blog, and several social media profiles. I want to explain the relation between these online presences to search engines using Schema.org. From the documentation and from examples on Google, I know that the following code connects the website and the social media profiles to my name: <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "Person", "name": "your name", "url": "http://www.your-site.com", // <= homepage "sameAs": [ "http://www