Tagged: x
-
AuthorPosts
-
January 21, 2017 at 5:59 pm #1339960
elmira_shitelParticipantSite: http://poliruemavto.ru/
I’ve made phone numbers in the header, body and the footer. Made them in simple text mode.
When I click from my phone on these phone numbers, I have a message on the screen:“Block of calls automatic initiation is installed on this site” and two options:
Ignore and Allow.
If I use Ignore – message disappear and if I click the phone number – appears again.
If I use Allow – standard message appears that allow me to make a call.Could you please advice how to get rid of this block.
Thank you in advance.
Victoria.January 22, 2017 at 1:45 am #1340227
Rue NelModeratorHello There,
Thanks for writing in! To disable phone number linking in smaller screen, since you have a child theme already, please insert this following code in your child theme’s functions.php file.
// Remove telephone links on iOs devices // ============================================================================= function remove_tel_uri(){ ?> <meta name="format-detection" content="telephone=no"> <?php } add_action('wp_head', 'remove_tel_uri'); // =============================================================================This seems to be the right thing to do, according to the Safari Web Content Guide for iPhone
<meta name="format-detection" content="telephone=no">
If you disable this but still want telephone links, you can still use the “tel” URI scheme.
Here is the relevant page (https://developer.apple.com/library/safari/featuredarticles/iPhoneURLScheme_Reference/PhoneLinks/PhoneLinks.html#//apple_ref/doc/uid/TP40007899-CH6-SW1) at Apple’s Developer Library.Hope this helps.
January 22, 2017 at 4:48 am #1340313
elmira_shitelParticipantYou are the best! Thank you.
January 22, 2017 at 4:59 am #1340320
ChristopherModeratorYou’re welcome.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1339960 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
