Structured data not being picked up on telephone n

2019-07-24 18:41发布

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>

The error generated by the validator is:

Node is empty. Double check that this is desired and consider removing.

Can someone tell me where I’m going wrong please?

1条回答
Root(大扎)
2楼-- · 2019-07-24 18:58

Schema.org’s telephone property expects Text as value, not a URL.

(There’s a feature request to change this.)

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>
查看更多
登录 后发表回答