【问题标题】:Structured data not being picked up on telephone number电话号码未获取结构化数据
【发布时间】:2015-08-22 21:07:56
【问题描述】:

我在网站中有以下 sn-p 代码。当我通过谷歌结构化数据测试工具运行它时,它没有接电话号码。我不确定我哪里出错了:

<div class="telephone-number" itemscope itemtype="http://schema.org/Organization">
    <p>Call Us: <a itemprop="telephone" href="tel:07749918143">07749 918 143</a></p>
</div>

验证器产生的错误是:

节点为空。仔细检查是否需要这样做并考虑删除。

谁能告诉我哪里出错了?

【问题讨论】:

    标签: html schema.org microdata google-rich-snippets structured-data


    【解决方案1】:

    Schema.org 的 telephone property 期望 Text 作为值,而不是 URL

    (有一个feature request 可以更改此设置。)

    所以你可以使用这样的东西:

    <div itemscope itemtype="http://schema.org/Organization">
        <p>Call Us: <a href="tel:07749918143"><span itemprop="telephone">07749 918 143</span></a></p>
    </div>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-07-22
      • 2014-07-27
      • 1970-01-01
      • 2011-09-05
      • 1970-01-01
      相关资源
      最近更新 更多