Advertisement:

Author Topic: Help my please - (Click on phone)  (Read 269 times)

George2735

  • Newbie
  • *
  • Posts: 2
Help my please - (Click on phone)
« on: May 16, 2018, 03:19:19 pm »
Hello,  need the implementation to click on phone number (from a member profile | posted post | ) to open automatically number on the phone. to work on the all phone mobile, and browser.

For exemple:
on the internet explorer  from the phone work call member
but but after chrome no work call member from the mobile phone

Digitalsense

  • Jr. Member
  • **
  • Posts: 75
  • Hello there! - digitalsense.in
Re: Help my please - (Click on phone)
« Reply #1 on: May 16, 2018, 03:39:39 pm »
Hi

what is the URL have a look on below thing does it work for you than the code is simple


<a href="tel:+919876543210" target="_blank">TEL</a>
« Last Edit: May 16, 2018, 03:41:29 pm by Digital Sense »

George2735

  • Newbie
  • *
  • Posts: 2
Re: Help my please - (Click on phone)
« Reply #2 on: May 16, 2018, 03:48:13 pm »
Thanks for the reply. But no like this, in sidebar where is profile and contact seller, i want when push on the number on the phone send number on you-r phone. 

i need modify this line

  <?php } ?>
    <?php if ( osc_user_phone() != '' ) { ?>
    <p class="phone"><i class="fa fa-phone"></i><?php printf('%s', osc_user_phone()); ?></p>
    <?php } ?>

when click on the number phone, opens in the my phone
« Last Edit: May 16, 2018, 04:17:14 pm by George2735 »

Digitalsense

  • Jr. Member
  • **
  • Posts: 75
  • Hello there! - digitalsense.in
Re: Help my please - (Click on phone)
« Reply #3 on: May 18, 2018, 02:12:40 pm »
Just Change as below

<?php if ( osc_user_phone() != '' ) { ?>
    <p class="phone"><i class="fa fa-phone"></i><a href="tel:<?php printf('%s', osc_user_phone()); ?>"><?php printf('%s', osc_user_phone()); ?></a></p>
    <?php } ?>

I think the above code should work. It would be better if you share url of website so I can have a look on it