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

Autor: Mohammad Ali K.
Besucht 662, Followers 2, Geteilt 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?

Gepostet am
8 ANTWORTEN
Daniel W.
Daniel W.
User
Nutzer des Monats DENutzer des Monats EN

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

Mehr lesen
Gepostet am von Daniel W.
Mohammad Ali K.
Mohammad Ali K.
User
Autor

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

Mehr lesen
Gepostet am von Mohammad Ali K.
Daniel W.
Daniel W.
User
Nutzer des Monats DENutzer des Monats 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.

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

Mehr lesen
Gepostet am von Daniel W.
Mohammad Ali K.
Mohammad Ali K.
User
Autor

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.

Mehr lesen
Gepostet am von Mohammad Ali K.
Mohammad Ali K.
Mohammad Ali K.
User
Autor

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

Mehr lesen
Gepostet am von Mohammad Ali K.
Daniel W.
Daniel W.
User
Nutzer des Monats DENutzer des Monats 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.

Mehr lesen
Gepostet am von Daniel W.
Daniel W.
Daniel W.
User
Nutzer des Monats DENutzer des Monats 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.

-----

Mehr lesen
Gepostet am von Daniel W.
Mohammad Ali K.
Mohammad Ali K.
User
Autor

Many thanks Daniel for your perfect suggestion. It worked!

Mehr lesen
Gepostet am von Mohammad Ali K.