Reputation: 135
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?
Upvotes: 2
Views: 863
Reputation: 96607
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>
Upvotes: 4