How to stop Apple safari treat a number as a phone number without editing code?
Author: Mohammad Ali K.
Visited 1193,
Followers 2,
Shared 0
I am using an ordinary seven digit number on one of the pages on a website. when viewed on Apple Safari browser the number appears as a clickable phone number link which can be clicked on which opens the phone dialler on iphone. Is there any way to block Safari from treating the ordinary number as a phone number, without editing the html code generated by website X5 Pro?
Posted on the
Does the number also appear in other browsers as a clickable telephone link?
Author
Hi Daniel,
No, it shows as number in my windows laptop ( all browsers) and my samsung Android phone too. This only happens on Apple Safari
Information from a German website.
>> https://kulturbanause.de/blog/automatische-verlinkung-von-nummern-verhindern/
----- Translated with Google -----
Prevent automatic linking of strings of numbers
The meta-command format-detection can be used to influence the automatic recognition of different character strings. The automatic conversion of telephone numbers can be switched off with the following meta command in the <head> of the website. The command has an impact on iOS.
<meta name="format-detection" content="telephone=no">
Note that you should then link phone numbers manually in order not to lose the function with real phone numbers.
-------------
Author
Thank you Daniel. I had come across the solution you suggested. However, this requires editing the html code generated by website x5 and adding the meta tag to every page containing a number. then, if I make other changes to the website after adding the meta tags and use website x5 export function to upload the new changes website x5 overwrites all the meta tags I had added previously and I have to go through the same process of adding the meta tags again.
Author
I am currently using this temporary solution. that is using the tag <span></span> in the middle of the number, for example I change 12345678 to 1234<span></span>5678 by enabling html code command in the text object. I still appreciate a proper solution and I hope the development team find a permanent solution in the next update of website x5 software
Enter the code here.
-----
WebSite X5 > 1 Settings > Statistics and Code / Code
Custom code:
Before the </head> tag
1 <meta name="format-detection" content="telephone=no">
-----
Then the code always stays in there.
The code only has to be entered once here in WebSite X5 and is then entered on all pages in the source code.
Note: I am using the German version of WebSite X5.
-----
Author
Many thanks Daniel for your perfect suggestion. It worked!