• Is there a way to make the telephone number a link on mobile devices so it calls when clicked?

    I also included URLs in the “More Info” section, but the link is dead on the front end. It is a linked on the back end which is useless of it doesn’t take customers to the location’s page.

Viewing 1 replies (of 1 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    If you want to make the phone number clickable, then it will be clickable on desktop and mobile.

    The only way to do this is by modifying the more info template with this filter.

    Copy the code from the usage section and place it in the functions.php inside your active theme folder.

    Remove line 41-44

    One line 24 replace this ‘ <%= formatPhoneNumber( phone ) %>’ with this ( untested ).

    <a href="tel: <%= formatPhoneNumber( phone ) %> "><%= formatPhoneNumber( phone ) %></a>

    What’s the URL where I can see the problem with the URLs in the more info section, or see the code you used to do so?

    • This reply was modified 8 years, 1 month ago by Tijmen Smit.
Viewing 1 replies (of 1 total)
  • The topic ‘Link Phone Number and URL – Url only links on Back End’ is closed to new replies.