Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable WRONG Phone number detection on iPhone

Tags:

css

ios

safari

I am currently working on a website on which order-numbers for products are shown. The iPhone detects them as a phone number and links them. Is there a way to prevent this?

To be specific: is there a way to prevent the detection in certain divs or sections?

<meta name="format-detection" content="telephone=no">

I know this, but there's no need to prevent the detection globally, because it is okay for phone numbers.

Any idea?

like image 415
18zehn Avatar asked Sep 03 '25 02:09

18zehn


1 Answers

A solution could be to add the meta-tag you mention and then make phone numbers as links, such as:

<a href="tel:12345678">12345678</a>
like image 179
razemauze Avatar answered Sep 04 '25 21:09

razemauze