• Resolved cary42

    (@cary42)


    I would like to wrap the business phone number in an <a href=”tel:” tag so that people can click on it on their phones.

    How can I add this and can it be added to the next version?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Business Directory Plugin

    (@businessdirectoryplugin)

    Hi @cary42,

    Thanks for contacting me here.

    Right now, we don’t have that attribute out of the box. Let me check with the developers and see what this would take to get into the plugin. It sounds like it might not be too hard, but that’s just a guess.

    Plugin Author Business Directory Plugin

    (@businessdirectoryplugin)

    Hi @cary42,

    I checked with the developers and it seems that we already have support for this.

    Currently we display a Phone Number field type like this:

    <a href="tel:' . esc_attr( $val ) . '">' . esc_html( $val ) . '</a>

    for a $val = “+1555555555” the resulting html element is:

    <a href="tel:+1555555555">+1555555555</a>

    The link must work to first dial on mobiles.

    Are you not seeing that? You must use a field of type “Phone” for it to work…

    Thread Starter cary42

    (@cary42)

    Thank you. Changing the field to type “Phone” worked.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add href=”tel” to business phone number’ is closed to new replies.