Follow

Disabling the conversion of numbers into links on mobile browsers

On some mobile browsers, any string of digits that looks like a phone number is automatically converted to a link. This can be a problem if the font color of the automatic link matches your background – thereby rendering the number invisible – or if your site page includes a string of digits that is not a phone number, such as an IP address.

To prevent mobile browsers from automatically converting numbers into links, add the following meta-tag to the Raw headers section:

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

You can add this tag to a single site page or to your entire site. If you add it to the Raw headers section for the entire site, make sure you click the Reset all pages to use this button. For instructions on adding meta-tags to individual pages or your entire site, see Defining meta-tags.

After disabling the automatic conversion of numbers to links, you can still format a phone number as a link by going into the HTML and manually entering the link as follows:

<a href="tel:123-456-7890">123-456-7890</a>

Clicking the resulting link will display a prompt to call the number (in this example, 123-456-7890).

If you want the link to initiate a text message instead of a phone call, enter sms: in place of tel: in the code above.

0 Comments

Please sign in to leave a comment.