Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent phone numbers to be converted into Skype links?

On those Windows machines with Skype installed, it tends to convert all phone-formatted numbers to Skype links so you can click it in order to make a call on Skype.

The question is how do you prevent that to happen for a certain number on page?

like image 431
Ain Tohvri Avatar asked Jun 13 '10 13:06

Ain Tohvri


People also ask

How to Turn off Skype on phone numbers?

In the Manage features section, click Caller ID. If this link is not displayed, go to the caller identification settings page to ensure that the link is displayed. Click Deactivate Caller ID. No number will now be displayed when you call mobiles or landlines from Skype.

Can you link Skype to your phone number?

Skype can use your mobile number in multiple ways, such as a way to sign in, to display for Caller ID, or to use for Call forwarding so you don't miss any Skype calls. If you want to change the mobile number associated with your account for Skype, there are a few places to change it. Sign in to your Skype profile page.


3 Answers

Try not outputting the numbers as a single piece of text. Instead of

<span>888-555-1212</span>

try

<span>888-</span><span>555-1212</span>

and it will disable skype

like image 187
John Saunders Avatar answered Oct 20 '22 18:10

John Saunders


Update

This answer is no longer accurate - see Daniel Byrne's answer for more information.


Using CSS only, it can be removed by overriding the styles used by Skype. Try adding these two lines to your stylesheet:

span.skype_pnh_container {display:none !important;}
span.skype_pnh_print_container {display:inline !important;} 
like image 20
Groo Avatar answered Oct 20 '22 16:10

Groo


Skype has taken to adding a randomly generated string of numbers to the end of their span tag, so the above response from Groo is not entirely accurate anymore. To correctly select all Skype tags on a page, use CSS3 wildcard selectors like such :

span[class^='skype_pnh_container'] {display:none !important;}
span[class^='skype_pnh_print_container'] {display:inline !important;}

the ^= operator causes an attribute selector to mach elements that have an class containing a value that STARTS WITH 'skype_pnh_container' and 'skype_pnh_print_container'

like image 35
Daniel Byrne Avatar answered Oct 20 '22 18:10

Daniel Byrne