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
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.
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.