Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #751395

    Hi.
    I am trying to add meta tag responsible for format detection in my Enfold built site (without it phone numbers display as active in Edge).
    I tried to add this:
    <meta name=”format-detection” content=”telephone=no” />
    in header.php file as well as this:
    function add_custom_code(){
    $output = “<meta name=’format-detection’ content=’telephone=no’>”;
    return $output;
    }
    add_action(‘wp_head’, ‘add_custom_code’);
    in functions.php file.

    But it didn’t work. Maybe I am pasting it in wrong place? I would be happy for your help.

    #751399

    Hi webtec-pk!

    Code in functions.php file should have worked. Please make sure you flushed your browser cache.
    If it still does not work, please create a temporary admin login and post it here privately.

    Regards,
    Yigit

    #751466

    It still doesn’t work so below temp admin login and password.

    #753046

    Something new?

    #754523

    Hi,

    Please use the below code in functions.php I have tested it on my personal installation and it works!

    
    // Insert code in head section
    
    function insert_to_head() {
    echo '<meta name=”format-detection” content=”telephone=no” />';
    }
    add_action('wp_head', 'insert_to_head');

    Best regards,
    Vinay

    • This reply was modified 1 year, 11 months ago by  Vinay.
    #754991

    Sorry, I don’t know why but in my case it still doesn’t work… I am adding this code in functions.php of enfold theme but this meta tag is still not vsible in source code of my site. My browser cache are flushed.
    Please, check it if it is posssible:

    #757867

    Hi,

    update to Enfold v4.0.2. Make sure you’re using a legal version, otherwise you’ll get into trouble.
    Please deactivate all plugins one by one to check which one is causing this issue and let us know if this solves the problem.

    Try to deactivate any other custom code, to check if one is causing this issue.

    If that does not help, then there might be some corrupted files, so please delete all theme files completely via FTP, before installing a fresh copy from your themeforest account. Here is a short tutorial on how to install the theme via FTP, in case you are not sure how that works:

    Best regards,
    Andy

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.