结构化数据未通过电话号码获取 [英] Structured data not being picked up on telephone number
本文介绍了结构化数据未通过电话号码获取的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在网站上有以下代码片段。当我通过Google结构化数据测试工具运行时,它不会获取电话号码。我不确定我哪里出错:
I have the following snippet of code in a website. When I run this through the Google Structured Data Testing Tool, it doesn’t pick up the phone number. I’m not sure where I’m going wrong:
<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>
验证器生成的错误是:
节点为空。仔细检查这是否需要,并考虑删除。
Node is empty. Double check that this is desired and consider removing.
有人可以告诉我哪里出错了吗?
Can someone tell me where I’m going wrong please?
推荐答案
Schema.org的 电话
属性需要文本作为值,而不是 URL 。
Schema.org’s telephone
property expects Text as value, not a URL.
(有一个功能请求来改变它。)
所以你可以使用这样的东西:
So you could use something like this:
<div itemscope itemtype="http://schema.org/Organization">
<p>Call Us: <a href="tel:07749918143"><span itemprop="telephone">07749 918 143</span></a></p>
</div>
这篇关于结构化数据未通过电话号码获取的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文