@stjason – can you give me a little better idea where to place this in the code?
(I’m a WP Noob so please bear with me)
Here is the original code from lines 141 to 152:
———————————————-
$can_show = mesmerize_can_show_demo_content();
$is_enabled = get_theme_mod(“header_top_bar_{$area}_info_field_{$i}_enabled”, true);
$icon = get_theme_mod(“header_top_bar_{$area}_info_field_{$i}_icon”, $defaults[$i][‘icon’]);
$text = get_theme_mod(“header_top_bar_{$area}_info_field_{$i}_text”, $can_show ? $defaults[$i][‘text’] : “”);
if ( ! intval($is_enabled)) {
continue;
}
if (!$can_show && !$text) {
continue;
}
————————————————-
Where exactly do I place: `if(filter_var($text, FILTER_VALIDATE_EMAIL)) {
$text = “<a href=’mailto:” . $text . “‘>” . $text . “</a>”;
}`
Many thanks in advance!!!