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

    I have a strange error. I have four portfolio entries. On every page I have a masonry with the portfolios. If I click on the portfolio, it opens in a new window. It should not open blank but inside the same window. Any advices, I do not realy understand this.
    Thank you Barbara

    The link:


    Hey weblinedesign,

    Did you add some custom code that allows it to open in new tab?
    Normally it doesn’t doesn’t open in new tab by default.

    Best regards,


    Hi Nikko,
    thank you for taking a look. No, there is no custom code inside.
    I saw, when I include Portfolio raster it is opened in the same window. But when I include a masonry, it is opened in a new window?
    Maybe you can take a look a look.
    Thank you and best regards


    Hi weblinedesign,

    Thanks for giving us admin access.
    I can see this code in your child theme’s functions.php:

    function add_custom_target(){
    jQuery('.av-masonry-container a ').attr('target','_blank');
    add_action('wp_footer', 'add_custom_target');

    I tried to remove it in Appearance > Editor however I’m prevented to do the action.
    Please remove that code and that should fix it.

    Best regards,


    Hi Nikko,
    thank you so much for your help. This was the error. I don’t know, how this could happen :((
    Maybe I tried something and did nor remember. Sorry for the inconvinience.
    Now everything is ok.
    Happy holidays


    Hi Barbara,

    Glad that we could help you :)
    Thanks for using Enfold and Advance Merry Christmas!

    Best regards,

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Portfolio in Masonry is opening in a new page’ is closed to new replies.