-
AuthorPosts
-
February 24, 2017 at 2:14 pm #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.
February 24, 2017 at 2:27 pm #751399Hi 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,
YigitFebruary 24, 2017 at 4:05 pm #751466It still doesn’t work so below temp admin login and password.
February 28, 2017 at 4:52 pm #753046Something new?
March 2, 2017 at 8:10 pm #754523Hi,
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 7 years, 8 months ago by Vinay.
March 3, 2017 at 12:15 pm #754991Sorry, 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:March 8, 2017 at 3:58 pm #757867Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.