WebSite X5Help Center

 
Mohammad Ali K.
Mohammad Ali K.
User

How to stop Apple safari treat a number as a phone number without editing code?  en

Auteur : Mohammad Ali K.
Visité 1244, Followers 2, Partagé 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?

Posté le
8 RéPONSES
Daniel W.
Daniel W.
User
Meilleur utilisateur du mois EN

Does the number also appear in other browsers as a clickable telephone link?

Lire plus
Posté le de Daniel W.
Mohammad Ali K.
Mohammad Ali K.
User
Auteur

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

Lire plus
Posté le de Mohammad Ali K.
Daniel W.
Daniel W.
User
Meilleur utilisateur du mois EN

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.

-------------

Lire plus
Posté le de Daniel W.
Mohammad Ali K.
Mohammad Ali K.
User
Auteur

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.

Lire plus
Posté le de Mohammad Ali K.
Mohammad Ali K.
Mohammad Ali K.
User
Auteur

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

Lire plus
Posté le de Mohammad Ali K.
Daniel W.
Daniel W.
User
Meilleur utilisateur du mois EN

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.

Lire plus
Posté le de Daniel W.
Daniel W.
Daniel W.
User
Meilleur utilisateur du mois EN

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.

-----

Lire plus
Posté le de Daniel W.
Mohammad Ali K.
Mohammad Ali K.
User
Auteur

Many thanks Daniel for your perfect suggestion. It worked!

Lire plus
Posté le de Mohammad Ali K.