Clickable Phone Number


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

    oh i had code written and didnt see the code gone when posted.

    now cant edit it

  • Mark Fail
    Mark Fail
    Super Guru 12,968 points
    July 24, 2013 at 10:26 am

    try re-posting.


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

    add this with the other elseif statements

    elseif($field['key'] == "phone"){
    $STRING .= "< a href='tel:".$value."'>" .  $value ."</ a>";
    }

    where phone is the custom field you create in customfield section


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

    seems the same issue as with last forum.

    it doesnt like the A tag

    in this case i made a space between the < and a
    as well as the closing tag </ and a

  • Mark Fail
    Mark Fail
    Super Guru 12,968 points
    July 24, 2013 at 10:38 am

    did u use the toolbar code option not the text edit code option?

    textedit...

    [code title=””]toolbar…[/code]


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

    ye it put < code > around the code but still doesnt help

  • Mark Fail
    Mark Fail
    Super Guru 12,968 points
    July 24, 2013 at 11:13 am

    silly forum

  • Vasily
    Vasily
    Newbie 9 points
    July 30, 2013 at 4:10 am

    Easy way : install plugin Telephone Number Linker from WordPress.org https://wordpress.org/plugins/telephone-number-linker/
    This plugin allows you to turn a phone number on your site into a link that only appears clickable for mobile phone users. This means mobile device users can click the number to call it, but desktop users won’t see it as a link – so won’t be taken to an error screen that they would normally when clicking on a phone number link. Some iOS and Android devices make numbers clickable by default – but not all do. If your client calls saying her ancient phone won’t call a number on his site when she clicks on it this is the plugin for you.

  • Joel
    Joel
    Senior Member 110 points
    June 13, 2014 at 2:05 am

    Vasily & Andre,

    I have this same problem. Tried the plugin but its not working. How did you get this to work?

    you can preview my problem at https://770tree.com

Viewing 9 posts - 16 through 24 (of 24 total)

New Business Themes for WordPress 2020

Build your WordPress Business today with our WordPress Business themes.