• Resolved teodrago

    (@teodrago)


    Hello, I’m trying to edit the function that shows the telephone number as $adcontactphone so that ppl can hit and call from mobile but I can’t find where to edit it. thank you.

    • This topic was modified 4 years, 11 months ago by teodrago.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @teodrago,

    We don’t typically recommend that you modify the plugin directly, as that means your changes will be lost every time you upgrade the plugin for our bug fix releases which come about every 4 weeks.

    It should be displaying with a link to call automatically, but it will only work on mobile devices. Perhaps you can elaborate a bit and show an example?

    Thread Starter teodrago

    (@teodrago)

    Hi what I was tring to di is this:
    in Single Ad page layout
    $adcontactphone
    changing in:

    <a href="tel:$adcontactphone">$adcontactphone</a>

    but is not working because some text the the function: $adcontactphone

    As it is atm is not clicable even in mobile devices as you said, so i was asking how to edit it or just if you could update that function.

    Thank you.

    • This reply was modified 4 years, 11 months ago by teodrago.
    • This reply was modified 4 years, 11 months ago by teodrago.
    • This reply was modified 4 years, 11 months ago by teodrago.

    Hi @teodrago,

    OK, you can definitely do that–but you’ll want to use a specific field code. We have all field codes documented here: https://awpcp.com/forum/faq/valid-field-codes/

    The one I think you want is $contact_phone which is the RAW version.

    Try that and let me know if you run into more issues.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘edit telephone number function’ is closed to new replies.