Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1184472

    Hi all :)
    I’m trying to make it such that when you click on the images in my masonry gallery, the custom link opens in a new tab.
    I see that there are countless forum entries about this, but somehow none of the solutions work when I try them. I’m under some time pressure, so would really appreciate a quick solution!
    I’ve left my login details so that you can log in and do the fix yourself if possible (that would help me a lot as it would save me precious time).
    The page in question is my Timeline page, and the element in question is a Masonry gallery.
    Thanks!
    Chris

    #1184787

    Hey sheilaregan,

    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

    #1195526

    Thank You Victoria!
    Sorry for my late reply.

    #1195620

    Hi,

    Did you need additional help with this topic or shall we close?

    Best regards,
    Jordan Shannon

    #1246295

    Yes you can close this thread.

    #1246307

    Hi Chris,

    We’re glad to hear that :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Masonry Gallery – open link in new tab’ is closed to new replies.