Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #348665

    Hi,

    I don’t know since when it happens, but i just realized that my portfolio grid won’t open the portfolio in the new tab anymore.
    I checked the setting, it still in the setting of open link in the new windows. but not in reality.
    Here is my page: http://villabugis.com/our-villas/
    Please help.

    Regards,
    Surya

    #348879

    Hi dewasurya!

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

    function add_custom_port_target(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('.grid-entry .inner-entry a').attr('target','_blank');
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_port_target');

    Best regards,
    Yigit

    #354957

    Hi Yigit,

    It turns my whole site to blank..

    #355302

    Hey!

    Please go to wp-content/themes/enfold folder and open Functions.php file and remove the code from the file. And please create a temporary admin login and post it here privately so we can add the code to functions.php file for you

    Best regards,
    Yigit

    #358934
    This reply has been marked as private.
    #359272

    Hey!

    I have placed the code into functions.php file. Please review your website. You may have added the code after closing php tag “?>” which might have caused the issue

    Regards,
    Yigit

    #360689

    Hi Thanks,

    I have another problem for the masonry gallery, I need it to open in the new tab too:
    http://villabugis.com/virtual-tours/

    Regards,
    Surya

    #360894

    Hi!

    Please add following code to Functions.php file as well

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

    I tried to login to add the code but seems like you have removed the user

    Best regards,
    Yigit

    #361245

    Hi Yigit,

    Thank you.. I can make it this time.
    I am sure i put the code before the closing php tag.
    I was editing the file with notepad++ and it always get my site blank. Now I edit with dreamweaver, not sure what was the difference, but now it works!

    Thanks,
    Surya

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘portfolio open not in the new tab’ is closed to new replies.