Hi,
I had a support query answered the other day at this link Masonry gallery image nofollow linking to new tab
Unfortunately I did not realise at the time that the code provided did not work in MS Edge? I had tested it in Chrome.
The code added to the functions.php file was:
function add_custom_target(){
?>
<script>
jQuery(window).load(function(){
jQuery(‘.av-masonry-container a ‘).attr(‘target’,’_blank’);
});
</script>
<?php
}
add_action(‘wp_footer’, ‘add_custom_target’);
I have tried clearing cache etc but still no resolve.
Any thoughts?
Cheers
John
Disregard this. For some reason after a few updates its working now?
All good. please close.
Hi,
If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon