Most of these images in the mason grid have a custom link set within the gallery edit page, but there is no option to make those links open in a new tab.
How can I make them open in a new tab, and is it possible to make some open in a new tab, but others open in the same window?
Thanks,
Rob
Hey robphat,
Please add following code to Functions.php file in Appearance > Editor
function avia_open_new_tab(){
?>
<script>
jQuery(window).load(function(){
jQuery('.home #av-masonry-1 a').attr('target','_blank');
});
</script>
<?php
}
add_action('wp_footer', 'avia_open_new_tab');
Please feel free to request – or vote if already requested – such feature on Enfold feature request form.
Best regards,
Yigit