Ask the community

This is a community support forum where you can ask
questions and interact with other PremiumPress Customers.

Clickable Phone Number

  • Andre
    Andre
    Newbie 14 points
    July 23, 2013 at 12:18 am

    Hi,
    I have created a Custom field in DP listing form for a Phone Number.
    It shoes on the Mobile Version of the listing but is not clickable so the user can call direct. Please advise how I could make this clickable.
    Site = http://directory.baldivis.com . Thanks.

  • Mark Fail
    Mark Fail
    Super Guru 12,822 points
    July 23, 2013 at 2:01 am

    Clickable numbers need a link to be set to :tel:

    we dont have any option this in our theme and also if the user enters them without a country or local prefix, the number wouldnt work either thus making it more annoying for the user

  • Andre
    Andre
    Newbie 14 points
    July 23, 2013 at 3:24 am

    Thanks for your reply.
    I see in the Custom field options we have a drop down choice for Text Fields etc, would it be possible to include Phone number, URL’s etc into this drop down in the future ?

  • Mark Fail
    Mark Fail
    Super Guru 12,822 points
    July 23, 2013 at 3:27 am

    urls and numbers are not field types, they are content types. Ill see about setting up an option for this in a later release.

    for now ill include into 3.7 that keys with the value “phone” or “phonenumber” will be linked to “tel:” for you :)

    url is already set to a link.

  • Andre
    Andre
    Newbie 14 points
    July 23, 2013 at 5:32 am

    Your the man :)
    Thank you, and awesome product by the way.

  • Mark Fail
    Mark Fail
    Super Guru 12,822 points
    July 23, 2013 at 6:43 am

    thank you

  • Andre
    Andre
    Newbie 14 points
    July 23, 2013 at 7:55 am

    Sorry Mark, to clarify , I’m using DP 7.1.4 so not sure what 3.7 is all about – I’m a newbe :)

  • Mark Fail
    Mark Fail
    Super Guru 12,822 points
    July 23, 2013 at 8:29 am

    oh sorry, my fault, iv added it to the new responsive version, it wont work in DP since the mobile interface is different.

  • Andre
    Andre
    Newbie 14 points
    July 23, 2013 at 9:20 am

    But I just tested it and it is working ? All numbers are now clickable.

  • Mark Fail
    Mark Fail
    Super Guru 12,822 points
    July 23, 2013 at 9:41 am

    lol in directorypress?

    must be magic! iv not updated any DP themes only the responsive framework.

  • Andre
    Andre
    Newbie 14 points
    July 23, 2013 at 10:42 am

    Yip, its working on my mobile phone, all listings phone numbers are clickable.
    log on to directory.baldivis.com with your mobile and see for yourself – Don’t touch anything :)


  • Alexandra
    Newbie 65 points
    July 23, 2013 at 11:15 am

    get the latest version of directory theme.
    mark added option to have tel: in the phone custom field

  • Mark Fail
    Mark Fail
    Super Guru 12,822 points
    July 23, 2013 at 1:46 pm

    :)


  • Alexandra
    Newbie 65 points
    July 24, 2013 at 10:13 am

    lol i didnt read the part where he said he added it to responsive only.

    so you need to go to class_design.php file and add the option to say

    if custom field == ‘phone’
    echo ‘value

    and so on. copy the skype IF statement and paste and change to work for the custom field phone

  • Mark Fail
    Mark Fail
    Super Guru 12,822 points
    July 24, 2013 at 10:20 am

    thanks Alexandra

Viewing 15 posts - 1 through 15 (of 24 total)