Making phone numbers clickable?
-
Was just wondering how to make phone numbers clickable? So if someone was to see '+44 (0) 1234 567891' and they clicked on it:
– On mobile, it would make the call
– On desktop, it would attempt to call the number via facetimeThe first example site on the Laytheme homepage has this functionality: https://www.studiogameiro.com/about/
Thank you!
-
Dear @edgrbnz
correct! Sometimes mobile browsers will display those numbers in a weird way… Just to keep in mind.Best!
Marius
-
Hei together,
I just have a more practical follow up question:
When I am editing text field on a page or a project with the text editor and I try to link a phone number with 'tel:01234567', the editor changes the target link to 'html://tel:01234567', which doesn't work apparently.
Am I doing something wrong? Do you have any suggestion?Best,
Sebastian -
Ahh, I just solved this. So one shouldn't insert the phone number as a link, as links are completed with 'http://', but inserting the html code directly into the editor works as expected.
Best,
Sebastian -
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it