Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #371914

    Hi,

    your solution described in #337204 doesn’t work after “MEHR LADEN” was clicked.

    Any idea?

    Thank you
    Peter

    #371923

    Hi Peter!

    Please add following code to Functions.php file in Appearance > Editor

    function add_custom_gallery_masonry_target(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('.av-masonry-gallery a').attr('target','_blank');
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_gallery_masonry_target');

    Cheers!
    Yigit

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.