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

    Hello,

    starting on Enfold… look great.
    But, I created a galery Mansony with picture that are linked to websites (my portfolio), but there are no options to link in “a new browser window”… so when people clic on a picture, my page is gone !
    can you help ?

    manu

    #344114

    Hey etamboise!

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

    function add_custom_post_target(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('.page-id-29 a.av-masonry-entry').attr('target','_blank');
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_post_target');

    Cheers!
    Yigit

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