Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By xiaomo on
I have a phone number on the site but when I view on mobile, it does not have the click to call function. It's just a string of text. I'm wondering if I can turn a number into click to call number.
Thanks in advance
-Edit: Solved with simple html tag
Comments
href
Hi,
To make a number clickable in mobile, you will have to convert it to link.
For ex : the href of link will look like this
href="tel:+9999999999". & the link will look as Call Me
Where "tel" is protocol. you can also use oher protocols like "sms" for sms sending, "youtube" for videos e.t.c.