Phone number does not click In the header of the site - Acme Themes

Best Premium and Free WordPress Themes Forums Education Base Phone number does not click In the header of the site

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #25451
    lyuba
    Participant

    Hello. In the header of the site there is a mail and phone. When you click on the mail button on your mobile device, you can immediately send a message. Phone number does not click. I need to add a link to the phone number in the code echo “<span class=’top-phone’><i class=’fa fa-phone’></i>”.esc_html( $education_base_phone_number ).”</span>”;. Help me please

    #25464
    Acme Themes
    Keymaster

    Hello lyuba,
    You can replace the code by following code:
    echo "<a class='top-phone' href='tel:".esc_attr( esc_html( $education_base_phone_number ))."'><i class='fa fa-phone'></i>".esc_html( $education_base_phone_number )."</a>";

    Please note that using child theme is recommended to customize the theme.

    Best Regards!
    Acme Themes

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.