How can I make phone number call when click in WordPress

Hi,
How can I create a link that will make the phone number placed in my site contact form call when click for mobile users? Screenshot: http://www.awesomescreenshot.com/image/105807/5a455c117ab24f3c6e99e1827a027396

Url: http://projectsmileng.com/contact

Regards

  • Adam Czajczyk
    • Support Gorilla

    Hey Barni,

    I hope you're well today and thank for your question!

    You can actually convert a phone number into an active "call link" quite easily, without even installing any plugins.

    If it's in your post's or page's content simply highlight it and use the WP editor to create a link. If it's somewhere in the template, you'll have to edit the template to enclose the number inside " here is the number " HTML tags.

    The key information here is to use "tel://" prefix for an URL. It works exactly the same way as you'd add an URL to a website but with "tel://" in front instead of "http://".

    It's also good to know that the phone number's format is important here. This will only work on Android and iOS phones (well, it might work on other OS'es too but there's no official specification). Formats are as follows:

    555-5555 (iOS)
    (555) 555-5555 (Android iOS)
    +1 (555) 555-5555 (iOS)
    555 5555 (iOS)
    555 555 5555 (Android iOS)
    +1 555 555 5555 (iOS)
    555.5555 (iOS)
    555.555.5555 (Android iOS)
    +1 555.555.5555 (iOS)

    To test it you'll have to open your site with the real device, most of the emulators doesn't support the "tel://" protocol.

    I hope that helps.

    Cheers,
    Adam

  • Adam Czajczyk
    • Support Gorilla

    Hey Barni,

    I hope you're well today!

    Here's an example of an active "phone" link:

    <a href="tel://(555) 555-555">This is any text you want it to be e.g. a phone number</a>

    I hope that helps. The above link is for iOS (see my previous post).

    Let me know if it helped!

    Cheers,
    Adam

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.