我想在我的网站上有一个面包屑导航,它也在谷歌搜索结果中显示为面包屑导航。
这没问题,只需使用微数据,如下所示:
https://support.google.com/webmasters/answer/185417?hl=en
并检查它是否适用于:
http://www.google.com/webmasters/tools/richsnippets
所以现在一切正常,但现在我注意到谷歌微数据示例中使用的 data-vocabulary.org 已经过时,schema.org 是新标准。
问题来了,这个 schema.org 不起作用。
我用了 this answer在
谷歌网站管理员工具 Richsnippets 和 linter.structured-data.org。谷歌 Richsnippets 不理解它,Linter 打印:
Errors
ArgumentError: invalid byte sequence in US-ASCII
Structured data
The data did not match any templates on file. Submit a request to the mailing list to request support for additional templates.
No formats detected.
Parser statistics
RDF::Microdata::Reader: 8 statements
Matched Templates: none
所以整个 schema.org 非常困惑,似乎不起作用。
有人我做错了什么?
最佳答案
现在你不应该使用 Schema.org 来做面包屑。尽管 data-vocabulary.org 对于其他类型已经过时,但请继续使用。这里已经有几次类似的讨论。查询 this link来自 Google 的 John Mueller 表示,面包屑丰富的片段不支持 schema.org。
at the moment we don't support the current schema.org breadcrumb markup for rich snippets, so you'd need to use one of the other documented formats. w3.org/2011/webschema/track/issues/10 also has some details about the difference. – John Mueller Jan 30 at 14:59
关于schema.org 面包屑导航不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17773507/