Support › Forums › Cian – WP Theme › Make buttons open up in new tab/window › Reply To: Make buttons open up in new tab/window
August 12, 2016 at 9:51 am
#5435
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