Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
  • #1226681

    I would like to open the images in the Masonry Gallery in a new window and not in the same window. how can I do that?


    Hey osovskie8,

    Here are the steps to do that:
    1. (skip if you have one) Use a child theme, you can download it and find instructions here:
    2. Please add this code in the child theme’s functions.php:

    // Open masonry gallery links in new window
    function add_custom_target(){
    jQuery('.av-masonry-container a ').attr('target','_blank');
    add_action('wp_footer', 'add_custom_target');

    You can also refer to our documentation:

    Best regards,


    Thank you Nikko but I do not want use a child theme. I have many css changes that was made by ENFOLD support to the current theme.
    Do you know of another way?


    Hi osovskie8,

    Did you make changes in Enfold > General Styling > Quick CSS or modified it directly in the theme file’s CSS? if it’s in the Quick CSS, then there should be no issue.
    There’s no other way except using a child theme (this is recommended way by WordPress) since any customization we made on the parent theme (Enfold) will be lost during theme update and you will need to add it again every theme update.

    Best regards,


    I do not know.
    Please check with Yigit
    And read our correspondent :


    Hi osovskie8,

    I see, I have checked the thread and Yigit mentioned he added it in Quick CSS.
    Please do the 2 steps I mentioned above or you can atleast give us both admin and FTP access, then we can do it for you.

    Best regards,


    Thank you!!
    please fix it for me to the point the images in the masonry will open in a separate window.
    Also, will this solution work automatically on every image I upload to wordpress?


    Hi osovskie8,

    Can you give us the username as well?

    Best regards,




    Hi osovskie8,

    Thanks, I have made the changes, please review your site. :)

    Best regards,


    Thank you:) it is working.
    Regarding your changes. can I update the child theme? is there anything I should do different?



    Yes you can update the child theme. The changes will still remain.

    Best regards,
    Jordan Shannon

Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.