Reply To: Make buttons open up in new tab/window

Support Forums Cian – WP Theme Make buttons open up in new tab/window Reply To: Make buttons open up in new tab/window

#5435
CreaboxThemes
Keymaster

Hi Reed,

for example for the button ‘Learn More’ in the header, you have to add the next code in the option Custom JS in the page Appearance > Theme Options > Custom Scripts:

jQuery('.intro a.learn').on('click', function(e){ 
    e.preventDefault(); 
    var url = jQuery(this).attr('href'); 
    window.open(url, '_blank');
});

Regards