Add link to email icon in contact header bar

Hi

Is it possible to add a link to the mail icon in the contact header bar?


Many thanks

Will

Hello Will,

To accomplish it, try doing the below steps:

  1. Install and activate the TC Custom JavaScript plugin
  2. Go To Appearance > Custom JavaScript
  3. Paste the following code into the provided box
    jQuery(function($) {

      if( $('.header-contact-info .header-email').length ) {

    	  var email = $('.header-contact-info .header-email a').attr('href');
    	  $('.header-contact-info .header-email i').wrap('<a href="'+email+'"></a>');

      }

    });
  1. Update

Regards,
Kharis

Thank you very much Kharis, that works perfectly!

You’re welcome!

Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

Regards,
Kharis