• Good afternoon.
    The telephone and mail of the header do not work correctly, when you click on it, http appears in front and you cannot call or send email directly.
    Is there no option to remove the http or remove link so that it cannot be accessed directly?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Firstly make a child theme of the theme you have then open header.php in child theme and see the code below –

    <ul class="head-contact-info">
    						<?php if($wl_theme_options['email_id'] !='') { ?><li><i class="fa fa-envelope"></i><a href="mailto:<?php echo esc_url($wl_theme_options['email_id']); ?>"><?php echo esc_attr($wl_theme_options['email_id']); ?></a></li><?php } ?>
    						<?php if($wl_theme_options['phone_no'] !='') { ?><li><i class="fa fa-phone"></i><a href="tel:<?php echo esc_url($wl_theme_options['phone_no']); ?>"><?php echo esc_attr($wl_theme_options['phone_no']); ?></a></li><?php } ?>
    				</ul>

    Replace this code with the below code and save the file.

    <ul class="head-contact-info">
    						<?php if($wl_theme_options['email_id'] !='') { ?><li><i class="fa fa-envelope"></i><a href="mailto:<?php echo $wl_theme_options['email_id'] ; ?>"><?php echo esc_attr($wl_theme_options['email_id']); ?></a></li><?php } ?>
    						<?php if($wl_theme_options['phone_no'] !='') { ?><li><i class="fa fa-phone"></i><a href="tel:<?php echo $wl_theme_options['phone_no']; ?>"><?php echo esc_attr($wl_theme_options['phone_no']); ?></a></li><?php } ?>
    				</ul>

    Let me know if need help.
    Thanks.

    Thread Starter ballemjunts

    (@ballemjunts)

    Genial, muchas gracias! Funciona perfectamente!

    You’re most welcome.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Email i phone’ is closed to new replies.