Tagged: 

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

    hey. i use a mansory image galery. all images have a custom link.

    #1046102

    Hey diefleischerei,
    Try adding this code to the end of your functions.php file in Appearance > Editor:

    function open_masonry_in_new_tab(){
      ?>
      <script>
    (function($){
    $(document).ready(function(){
     
      $('a.av-masonry-entry').click(function(){
        window.open(this.href);
        return false;
      });
     
    });
    })(jQuery);
    </script>
      <?php
      }
      add_action('wp_footer', 'open_masonry_in_new_tab');

    Best regards,
    Mike

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