-
AuthorPosts
-
October 1, 2015 at 6:50 am #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 linkThanks in advance
October 1, 2015 at 1:17 pm #512134Hey 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,
YigitOctober 1, 2015 at 1:39 pm #512156That is of course in the parent theme?
October 1, 2015 at 1:43 pm #512160Hey!
If you are using a child theme, you can add it to child theme’s functions.php file as well :)
Cheers!
YigitOctober 1, 2015 at 2:04 pm #512176Doesn’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();October 1, 2015 at 2:29 pm #512188Hi!
Do you mind creating a temporary admin login and posting it here privately so we can look into it?
Cheers!
YigitOctober 1, 2015 at 3:28 pm #512210I replied private. Did you receive that?
October 1, 2015 at 3:33 pm #512215October 1, 2015 at 3:36 pm #512219Second attempt ;-)
October 1, 2015 at 4:04 pm #512237Hey!
I added the code to bottom of Google Analytics field. Please review your website now
Cheers!
YigitOctober 1, 2015 at 4:06 pm #512241Superman!
Glad you could fix it, thanks!!!!!
October 1, 2015 at 4:08 pm #512246 -
AuthorPosts
- The topic ‘Numbers become links and adept link color’ is closed to new replies.