Questions tagged [google-rich-snippets]

Rich Snippets / Rich Cards (or any other search result feature based on structured data) in Google Search

Rich Snippets (or Rich Cards) are details added to the entries on Google Search result pages.

They use the vocabulary Schema.org (), and support the syntaxes JSON-LD (), Microdata (), and RDFa ().

Related tags

References

379 questions
58
votes
5 answers

Microdata or JSON-LD? I'm confused

I haven't found a clear and updated answer, even after googling for a few hours, so here it goes: I am aware of the advantages and disadvantages of both Microdata and JSON-LD. I also know that Microdata was dropped from W3C (and consequently from…
Samia Ruponti
  • 3,530
  • 10
  • 37
  • 58
21
votes
6 answers

"position" property required for ItemList with Product list items?

I have a problem: Google’s Structured Data Testing Tool gives me an error: Tag position doesn't exist. It's required. I add it to the markup. Than I get this error: Position property is not valid for an object of type Product Here is my…
murrometz
  • 894
  • 1
  • 8
  • 12
19
votes
4 answers

Add ld+json script tag in client-side React

I have currently build a React app. Since it's a SPA, it has a single index.html file. I want to add 2 "ld+json" script tags, i.e for reviews and bookmarks for a certain route. I've injected the script tag in componentDidMount of that component but…
Ashish Shetty
  • 306
  • 1
  • 2
  • 8
18
votes
1 answer

How to implement "mainEntityOfPage" to this specific site?

Please take a look here: https://developers.google.com/structured-data/testing-tool?url=https%253A%252F%252Fglamourina.net%252Fen%252F How can I correctly add mainEntityOfPage to this site? In Google documentation example I see something like…
Pikk
  • 1,247
  • 2
  • 10
  • 19
17
votes
2 answers

AggregateRating and ratingValue when not rated yet

How do I set up AggregateRating when the object is not rated yet (ratingValue = 0)? My current setup is:
devOp
  • 3,130
  • 1
  • 15
  • 32
14
votes
7 answers

Google SDTT error: "All values provided for http://www.example.com/ must have the same domain."

When I copy/paste JSON-LD example from Google Documentation (code-snippet below) I get an error in the Structured Data Testing Tool: http://www.your-company-site.com (All values provided for http://www.example.com/ must have the same…
Piece of Code
  • 141
  • 1
  • 6
13
votes
1 answer

schema.org microdata - image required for Article

Every example I find for https://schema.org/Article gives at least one error in the Google Structured Data Testing Tool Supposedly headline is now required; that's fine, just change itemprop="name" to itemprop="name headline" But it also gives the…
HoboBen
  • 2,362
  • 3
  • 19
  • 26
12
votes
3 answers

Does Schema.org markup work if markup is dynamically built with JavaScript?

I have a page where some events are dynamically loaded by reading some JSON with JavaScript. I build a div for every event with the Event Schema.org markup. Google's testing tool doesn't read this markup. Is it because of an error in the markup, or…
Migio B
  • 377
  • 1
  • 5
  • 21
12
votes
1 answer

Webmaster tools doesn't detect structured data on my website

It has been a while since I upload all my webpages. Google in fact has indexed them too and my website has started appearing in the Google search results. But still Webmaster tools shows that the data on my site is unstructured. How can I rectify…
10
votes
3 answers

Sitelinks Search Box JSON-LD giving error on Google Structured Data Testing Tool

I implemented Google’s Sitelinks Search Box to my site. It was working very well. But today I cheked again on Google Structured Data Testing Tool and something was wrong. Now I’m getting below error: And my implementation is:
hakiko
  • 4,737
  • 6
  • 49
  • 96
9
votes
7 answers

Error in Google SDTT: "All values provided for url must point to the same page."

I am trying to create some JSON-LD structured data for a list of products on an ecom-site but I am getting an error when using Google's Structured Data Testing Tool. So far, I have this: { "@context": "http://schema.org", "@type":…
user2777332
  • 105
  • 2
  • 6
9
votes
1 answer

Schema.org AggregateRating markup when ratingValue is Empty

I am implementing structured data into an app with the AggregateRating markup. The problem is that when 0 ratings are present the rating value is empty. I get the following error when using Google Structured Data Testing Tool. Field ratingValue…
JeffD23
  • 5,580
  • 21
  • 34
8
votes
2 answers

Breadcrumbs on current page

I have currently implemented my breadcrumbs like this:
OuberThat
  • 185
  • 2
  • 15
8
votes
3 answers

Schema.org siteNavigationElement

I'm having trouble getting the Webmaster Tools rich snippet testing tool to properly return markup for schema.org's WebPageElement types. http://schema.org/WebPageElement Does anyone have a site that hosts this markup? I'm looking for solutions for…
6
votes
2 answers

Google SDTT error: "The review has no reviewed item specified."

I checked my website's Rich Snippets in the Google Rich Snippets Tool, and it had an error: The review has no reviewed item specified. How do I fix it? The code is:
Daniel Joseph
  • 59
  • 1
  • 4
1
2 3
25 26