• Hi, in the header bar I have a phone number. Is it possible to make this a link so that when it’s clicked it opens the phone app but only on mobile devices, I don’t want it to do anything on tablets or desktops.

    Many thanks

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Yes, you just use tel: as the link. eg:

    <a href="tel:001122334455">0011 22 33 44 55</a>

    Thread Starter mrmckee

    (@mrmckee)

    Will that only show on mobile devices? I would like it to just be plain text on a laptop or tablet.

    I suggest keeping it the same across all devices. Plenty of laptops and tablets can make phone calls these days, either on their own or through something like Continuity on macOS. Some third party apps like Skype or browser extensions might also be able to handle phone number links. The biggest concern used to be that clicking the link would result in an ugly error message but these days most – if not all – browsers will handle this more gracefully.

    Thread Starter mrmckee

    (@mrmckee)

    Ok, that’s a good point. Many thanks. Can I handle the error in any (simple) way e.g. a redirect to the contact page?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I think Jacob was saying you shouldn’t be concerned of an error message when using a telephone link.

    Thread Starter mrmckee

    (@mrmckee)

    Ok, I do get an error on my laptop funnily enough but it works just as I want on my mobile.

    That would be because your laptop doesn’t have any apps to handle phone calls.

    To be honest, most people that have a laptop or desktop don’t expect to make phone calls from it. Phones are different and that’s why this still works.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Click to call’ is closed to new replies.