Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Structured Data Testing Tool breadcrumb error

I am using schema.org (Breadcrumb) and the open graph protocol on my website. Googles Structured Data Tesing Tool mixes them both and throws out an error.

You can copy and paste the code to the tool to see the error messages.

What did I misunderstood or did wrong? Thanks for any help.

Here is the code:

<html lang="en" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
  <head>
    <meta property="og:url" content="http://example.com/examples/example" />
    <meta property="og:type" content="website" />
    <meta property="og:title" content="Examples and so on" />
    <meta property="og:description" content="A lot of examples here" />
    <meta property="og:image" content="http://example.com/example.jpg" />
  </head>
  <body>
    <ol class='breadcrumb' vocab='http://schema.org/' typeof='BreadcrumbList'>
      <li property='itemListElement' typeof='ListItem'><a property='item' typeof='WebPage' href='/'><span property='name'>Home</span></a><meta property='position' content='1'></li>
      <li property='itemListElement' typeof='ListItem'><a property='item' typeof='WebPage' href='/examples'><span property='name'>Examples</span></a><meta property='position' content='2'></li>
      <li property='itemListElement' typeof='ListItem'><a property='item' typeof='WebPage' href='/examples/example'><span property='name'>Examples and so on</span></a><meta property='position' content='3'></li>
    </ol>
  </body>
</html>
like image 694
Friedrich Avatar asked Oct 31 '22 04:10

Friedrich


1 Answers

rdfa(opengraph) and microdata(schema) cannot be used on same html page

"3) We’ll continue to support our existing rich snippets markup formats. If you’ve already done markup on your pages using microformats or RDFa, we’ll continue to support it. One caveat to watch out for: while it’s OK to use the new schema.org markup or continue to use existing microformats or RDFa markup, you should avoid mixing the formats together on the same web page, as this can confuse our parsers."

Source: http://googlewebmastercentral.blogspot.in/2011/06/introducing-schemaorg-search-engines.html

like image 106
SimonSolutions Avatar answered Nov 08 '22 06:11

SimonSolutions