Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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?

    #1226731

    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: https://kriesi.at/documentation/enfold/child-theme/
    2. Please add this code in the child theme’s functions.php:

    //---------------------------
    // Open masonry gallery links in new window
    //---------------------------
    function add_custom_target(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('.av-masonry-container a ').attr('target','_blank');
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_target');

    You can also refer to our documentation: https://kriesi.at/documentation/enfold/masonry-gallery/#toggle-id-1

    Best regards,
    Nikko

    #1226747

    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?

    #1227050

    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,
    Nikko

    #1227096

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

    https://kriesi.at/support/topic/theme-not-responsive/#post-1219162

    #1227120

    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,
    Nikko

    #1227197

    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?

    #1227376

    Hi osovskie8,

    Can you give us the username as well?

    Best regards,
    Nikko

    #1227389

    Attached

    #1227399

    Hi osovskie8,

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

    Best regards,
    Nikko

    #1227549

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

    #1227660

    Hi,

    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.