Click to Call Phone Numbers

This topic contains 12 replies, has 5 voices, and was last updated by  Simone 9 years, 3 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #21213

    Kenny Eliason
    Expired Member
    Post count: 54

    Any quick fixes to enable a hyperlink wrap on the phone number so that you can click to dial? Looking for something like:

    <a href="tel:18005643148">800-564-3148</a>
    #21217

    thebirdiemachine
    Expired Member
    Post count: 246

    There is an Addon in Theme Tailors that might do what you want.

    http://simone.themetailors.com/tt/portfolio/gd-click-to-call/

    #21218

    Guust
    Moderator
    Post count: 29970

    The birdie took the words right out of my mouth …

    #21355

    Kenny Eliason
    Expired Member
    Post count: 54

    $9 bucks down the drain… This is an additional widget, I just want to turn the current phone number into a clickable number. Any ideas?

    Thanks!

    #21389

    Simone
    Expired Member
    Post count: 3515

    Hello, go to: wp-content/plugins/geodirectory/geodirectory-functions and open the file custom_fields_functions.php

    find this block around row 1950:

    
    
    $html = '<div class="geodir_more_info '.$geodir_odd_even.' '.$type['css_class'].' '.$type['htmlvar_name'].'" style="clear:both;"><span class="geodir-i-contact" style="'.$field_icon.'">'.$field_icon_af.
    							$html .= (trim($type['site_title'])) ? __($type['site_title'],GEODIRECTORY_TEXTDOMAIN).': ' : '&nbsp;';
    							$html .= '</span>'.stripslashes($post->$type['htmlvar_name']).'</div>';

    and replace with:

    
    
    $html = '<div class="geodir_more_info '.$geodir_odd_even.' '.$type['css_class'].' '.$type['htmlvar_name'].'" style="clear:both;"><span class="geodir-i-contact" style="'.$field_icon.'">'.$field_icon_af.
    							$html .= (trim($type['site_title'])) ? __($type['site_title'],GEODIRECTORY_TEXTDOMAIN).': ' : '&nbsp;';
    							$html .= '</span><a href="tel:'.$post->$type['htmlvar_name'].'">'.stripslashes($post->$type['htmlvar_name']).'</a></div>';
    

    Ps- I’m the author of the GD CLICK TO CALL widget 😛

    #21492

    Kenny Eliason
    Expired Member
    Post count: 54

    Thanks Simone! Just what I was needing! And I’m sure the plugin is great for a lot of people, I was just bummed it was a suggestion to fix my need when really it didn’t fix my need… know what I mean?

    Anywho, thanks again!

    #28375

    ray-ramon-r
    Free User
    Post count: 101

    Click to call, I lost the widget code on the last update, why would it be? how do I re-install it?

    Thank you

    #28378

    Simone
    Expired Member
    Post count: 3515

    Hi, the same you did the first time, replacing that code in the custom_fields_functions.php file.
    I will try to add a function so it will be persistent, the previous solution was rough and not a good idea.

    #28385

    ray-ramon-r
    Free User
    Post count: 101

    You actually did it for me Simone, that’s why I asked.

    #28394

    Simone
    Expired Member
    Post count: 3515

    I can re-do this for you but…the “old” solution is not advisable.

    I’ll call Stiofan and ask for help, I’ve been struggling with the code and can’t make a function ;(

    #28397

    ray-ramon-r
    Free User
    Post count: 101

    sounds good man, It’s a feature my listers are liking that we have.

    #28405

    ray-ramon-r
    Free User
    Post count: 101

    What happens with the old situation? Should I do it?

    #28456

    Simone
    Expired Member
    Post count: 3515

    Stiofan added the feature to the core, and it will be available in the next release.

Viewing 13 posts - 1 through 13 (of 13 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket