Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #458546

    this is often a good feature but sometimes the automatic detection takes other numbers too for telephone !

    Example : IBAN Numbers.

    we can disable this function by adding a meta like this:

    <meta name=”format-detection” content=”telephone=no”>

    and you have to do for the real telephone numbers it manually by :

    e.g:

    telephone-link   <a href="tel:+4915118956490">Call now</a>
    
    Skype-link:  <a href="[ USERNAME / NUMBER]?call">Call with Skype</a>
    
    Facetime-link:   <a href="+4915118956490">Call with facetime</a>

    Or is there a way to stay on automatic and to set for the numbers (IBAN etc) the way to not be recognized ?

    How can i insert this meta into Enfold head ? is there a hook method?

    • This topic was modified 9 years, 5 months ago by Guenni007.
    #458561

    Hey Guenter!

    You can give your IBAN links a custom class and set pointer-events to none – https://developer.mozilla.org/en/docs/Web/CSS/pointer-events
    and you can use following code

    function add_custom_code(){
    $output = "<meta name='format-detection' content='telephone=no'>";
    return $output; 
    }
    add_action('wp_head', 'add_custom_code');

    Cheers!
    Yigit

    #458580
    This reply has been marked as private.
    #458595

    ok i have to do so as if there was a link in the iconbox

    .customclass .iconbox_content_container  a {
    pointer-events: none !important;
    color: #666 !important
    }
    • This reply was modified 9 years, 5 months ago by Guenni007.
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘how to avoid automatic format detection for telephone numbers’ is closed to new replies.