If Skype is installed, phone numbers are showing up with a Skype icon in some browsers.
I don't want to show Skype icons anywhere, ever.
Is there any JavaScript or PHP function that can handle this?
If Skype is installed, phone numbers are showing up with a Skype icon in some browsers.
I don't want to show Skype icons anywhere, ever.
Is there any JavaScript or PHP function that can handle this?
I tried the (updated) css as suggested by hans, but it doesn't work in the latest version of Chrome (17.0.963.78 m)
It seems the skype plugin has changed again as the code generated by skype (in my version of Chrome) is different from that shown by Madmartigan
I tried putting a comment in the middle of my phone number:
eg:
555<!--stop skype -->-555-5555
And this seems to work. i.e it stops skype recognising it as a phone number. The only thing I'm not sure of is how it affects a Google search for the phone number.
I did run the page through a bot simulator:
http://www.xml-sitemaps.com/se-bot-simulator.html
and the comment didn't show up, so I'm hoping it won't affect Google search.
CSS would be the best solution for me but is too much of a moving target, so I prefer the 'comment' approach to the javascript one, but I guess different approaches are easier in different cases.
edit
OK eat my words. Skype is quite smart. If your phone number is prefixed by the words "call us on" rather than "phone" which I initially tested with, then adding a comment inside the number doesn't work.
I tried another approach which is to use the soft hyphen e.g.
555­-555-5555
and this worked.
I don't know of any PHP or JavaScript code that can remove Skype icons from phone numbers: But there are several ways that you can stop Skype from highlighting (i.e. remove skype icon) phone numbers:
From a Developers point of View you can:
From a user's point of view, the user can:
For more details check the reference: How To Prevent Skype from Highlighting Phone Numbers
Here are the steps have to implement into code.
Step 1: add meta tag and style into your page head
<head>
<meta name="SKYPE_TOOLBAR" content ="SKYPE_TOOLBAR_PARSER_COMPATIBLE"/>
<style>
span.skype_pnh_container {display:none !important;}
span.skype_pnh_print_container {display:inline !important;}
</style>
</head>
Step 2:
wrap your numbers inside <span> like:
<span>123-</span><span>123-1234</span>
This worked for me. :)