【问题标题】:Google rich snippet - Missing required field "entry-title"Google 丰富网页摘要 - 缺少必填字段“entry-title”
【发布时间】:2014-07-06 22:40:42
【问题描述】:

我试图使用google structured data testing tool 查看我的网站上的微数据是否配置良好,但它给出了一些错误。在这个问题中,我问的是第一个问题:Missing required field "entry-title".

我已经在entry-title 类中附上了帖子的标题,但它不起作用。这是关于错误的页面代码:

 <header itemscope itemtype="http://schema.org/Article">
    <figure>
       <img width="674" height="250" src="http://www.primapaginaonline.it/wp-content/uploads/2014/07/tagliodiverso-674x250.jpeg?3ef148" class="attachment-topimage wp-post-image" alt="tagliodiverso" itemprop="thumbnailUrl" /></figure>
    </figure>
<div itemprop="articleSection" class="single-page-category">Cultura</div>
<h1 itemprop="headline" class="entry-title single-entry-title"> Tagliodiverso, gli appuntamenti della Pietraia dei Poeti</h1>   
<div itemprop="description" class="meta-description">Con Tagliodiverso il museo a cielo aperto Pietraia dei Poeti stila un cartellone di incontri culturali incentrati sulla disabilità e l'accessibilità.</div>
    <div class="single-post-meta"></div>
</header>

【问题讨论】:

  • 请注意,您的代码不包含微数据。我猜你使用 Microformats,但是你的代码 sn-p 没有显示哪个 Microformat(缺少顶级类)。
  • 嗯,我不知道,但它没有将类粘贴到标题标签中,我现在编辑了
  • 但是现在没有任何微数据属性 (itemprop)?您只创建了一个Article 项目,但没有为这篇文章提供任何属性(如标题、URL、图像等)。
  • 好的,不是粘贴 itemprop 元素,现在已经全部了,谢谢
  • 好的。但是我在谷歌的测试工具中没有发现任何错误。

标签: microdata microformats google-rich-snippets


【解决方案1】:

已解决,我必须将所有文章放在&lt;div class="hentry"&gt; 标记中,一切正常!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-02-01
    • 1970-01-01
    • 2016-08-14
    • 2015-09-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多