Okay
  Public Ticket #1204954
a href tel - direct making a phone connection
Closed

Comments

  •  2
    petravanhuizen started the conversation

    Is it possible to import an a href tel.... on the website.

    For instance in the section above footer: vragen en speciale wensen. Now the phone-number is standing there but it would be great that people with an telephone who are looking at the website can immediately call the number by clicking on the number

    Also in the Footer-Area, there is the P with the phonenumber.

  •  2,054
    Theme replied

    Hi,

    In order to have text link to a phone number you must format it in this way:

    <a href="tel:+123123">123123</a>

    In the above, of course, 123123 is an example number.

    For the footer widget, you can copy includes/plugins/widgets/widget-address.php to your child theme (same folder structure), edit the file and change line 64 from

    <p><em>P:</em> <?php esc_html_e('24/7 customer support', 'bookyourtravel'); ?>: <?php echo esc_html($company_phone); ?></p>

    to

    <p><em>P:</em> <?php esc_html_e('24/7 customer support', 'bookyourtravel'); ?>: <a href="tel:<?php echo esc_html($company_phone); ?>"><?php echo esc_html($company_phone); ?></a></p>
    

    Best regards,

    themeenergy support

  •  2
    petravanhuizen replied

    Thanks. The 24/7-part is not so important for me. The Above-Footer-Widget was the most important part and that worked.

    Thanks again


  •  2,054
    Theme replied

    You are welcome.

    Best regards,

    themeenergy support