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

Author: Mohammad Ali K.
Visited 663, 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
8 ANSWERS
Daniel W.
Daniel W.
User
Best User of the month DEBest User of the month EN

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

Read more
Posted on the from Daniel W.
Mohammad Ali K.
Mohammad Ali K.
User
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

Read more
Posted on the from Mohammad Ali K.
Daniel W.
Daniel W.
User
Best User of the month DEBest User of the month 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.

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

Read more
Posted on the from Daniel W.
Mohammad Ali K.
Mohammad Ali K.
User
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.

Read more
Posted on the from Mohammad Ali K.
Mohammad Ali K.
Mohammad Ali K.
User
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

Read more
Posted on the from Mohammad Ali K.
Daniel W.
Daniel W.
User
Best User of the month DEBest User of the month 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.

Read more
Posted on the from Daniel W.
Daniel W.
Daniel W.
User
Best User of the month DEBest User of the month 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.

-----

Read more
Posted on the from Daniel W.
Mohammad Ali K.
Mohammad Ali K.
User
Author

Many thanks Daniel for your perfect suggestion. It worked!

Read more
Posted on the from Mohammad Ali K.