2

I list a phone number on my website at the moment and it is currently linked to "tel:myphonenumber"... how can I remove this a href unless the site is loaded on a mobile?

Reece
  • 777
  • 5
  • 22
  • 42

3 Answers3

0

This has already been answered here How can I make an <a href> only active on mobile devices?

You should use microdata. As Mobile phones will recognize it, and it won't affect normal web browsers.

<div class="vcard">
    <div class="tel">
        12345555555
    </div>
</div>
Community
  • 1
  • 1
Rami Alloush
  • 2,308
  • 2
  • 27
  • 33
0

HTML

 <td><a href="tel:888888">888888</a></td>

CSS

@media screen and (min-width: 1224px) { a[href*="tel:"] { pointer-events: none; } }

Ashutosh Jha
  • 15,451
  • 11
  • 52
  • 85
-2

Unfortunately there is no way to accomplish that.


Brian Cray
  • 1,277
  • 1
  • 7
  • 19