Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1041025

    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

    #1041495

    Disregard this. For some reason after a few updates its working now?

    All good. please close.

    #1043464

    Hi,

    If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Masonry gallery image nofollow linking to new tab does not open in MS Edge’ is closed to new replies.