Hi, how can I make all the custom links i’m using in a masonry gallery open in a new tab?
Hey DROR,
Here is the code you can put in your funtions.php
function add_custom_script(){
?>
<script>
(function($){
$(window).load(function() {
$('#av-masonry-1 .av-masonry-entry').attr('target', '_blank');
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'add_custom_script');
If you need further assistance please let us know.
Best regards,
Victoria