Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #511959

    Hi,
    I noticed that in the Enfold theme (in Safari) numbers become links and get a link color.
    Now I created a black background with white text, in iPhone the number is invisible.
    For me there’s no need that (telephone) numbers can be detected and called automatically.
    Odd, on desktop computers there’s no problem…
    How can I change numbers to “normal” behavior?

    Please visit http://www.djniro.nl
    You will find a section that says: Bel DJNiro 0652358545
    All that text should be white, no link

    Thanks in advance

    #512134

    Hey Dirk!

    Please add following code to Functions.php file in Appearance > Editor

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

    Regards,
    Yigit

    #512156

    That is of course in the parent theme?

    #512160

    Hey!

    If you are using a child theme, you can add it to child theme’s functions.php file as well :)

    Cheers!
    Yigit

    #512176

    Doesn’t work for me.
    I have put your code in function.php but still on iPhone (not at desktop) the telephone number
    is a link and a strange color…. (may the server needs time to adept changes..?)

    <?php

    global $avia_config;

    /*
    * if you run a child theme and dont want to load the default functions.php file
    * set the global var below in you childthemes function.php to true:
    *
    * example: global $avia_config; $avia_config[‘use_child_theme_functions_only’] = true;
    * The default functions.php file will then no longer be loaded. You need to make sure then
    * to include framework and functions that you want to use by yourself.
    *
    * This is only recommended for advanced users
    */

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

    if(isset($avia_config[‘use_child_theme_functions_only’])) return;

    /*
    * create a global var which stores the ids of all posts which are displayed on the current page. It will help us to filter duplicate posts
    */
    $avia_config[‘posts_on_current_page’] = array();

    #512188

    Hi!

    Do you mind creating a temporary admin login and posting it here privately so we can look into it?

    Cheers!
    Yigit

    #512210

    I replied private. Did you receive that?

    #512215

    Hi!

    No, can you please try posting it again?

    Cheers!
    Yigit

    #512219

    Second attempt ;-)

    #512237

    Hey!

    I added the code to bottom of Google Analytics field. Please review your website now

    Cheers!
    Yigit

    #512241

    Superman!

    Glad you could fix it, thanks!!!!!

    #512246

    Hey!

    You are welcome Dickdick, glad we could help :)
    Let us know if you have any other questions or issues

    Best regards,
    Yigit

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Numbers become links and adept link color’ is closed to new replies.