Clickable Phone Number

WordPress Business Themes Forums Version 7 Themes DirectoryPress Clickable Phone Number

Clickable Phone Number

July 23, 2013
Andre Andre
  • Andre
    Andre
    Newbie 14 points

    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.

    July 23, 2013 at 12:18 am
  • Mark Fail
    Mark Fail
    Super Guru 12,812 points

    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

    July 23, 2013 at 2:01 am
  • Andre
    Andre
    Newbie 14 points

    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 ?

    July 23, 2013 at 3:24 am
  • Mark Fail
    Mark Fail
    Super Guru 12,812 points

    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.

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

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

    July 23, 2013 at 5:32 am
  • Mark Fail
    Mark Fail
    Super Guru 12,812 points

    thank you

    July 23, 2013 at 6:43 am
  • Andre
    Andre
    Newbie 14 points

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

    July 23, 2013 at 7:55 am
  • Mark Fail
    Mark Fail
    Super Guru 12,812 points

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

    July 23, 2013 at 8:29 am
  • Andre
    Andre
    Newbie 14 points

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

    July 23, 2013 at 9:20 am
  • Mark Fail
    Mark Fail
    Super Guru 12,812 points

    lol in directorypress?

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

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

    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 :)

    July 23, 2013 at 10:42 am

  • Alexandra
    Newbie 65 points

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

    July 23, 2013 at 11:15 am
  • Mark Fail
    Mark Fail
    Super Guru 12,812 points

    :)

    July 23, 2013 at 1:46 pm

  • Alexandra
    Newbie 65 points

    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

    July 24, 2013 at 10:13 am
  • Mark Fail
    Mark Fail
    Super Guru 12,812 points

    thanks Alexandra

    July 24, 2013 at 10:20 am
Viewing 15 posts - 1 through 15 (of 24 total)

Didn't find what you were after?

Chat with us now

or contact our support team