-
AuthorPosts
-
June 30, 2020 at 10:53 am #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?
June 30, 2020 at 1:15 pm #1226731Hey 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,
NikkoJune 30, 2020 at 2:05 pm #1226747Thank 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?July 1, 2020 at 2:08 am #1227050Hi 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,
NikkoJuly 1, 2020 at 6:19 am #1227096I do not know.
Please check with Yigit
And read our correspondent :https://kriesi.at/support/topic/theme-not-responsive/#post-1219162
July 1, 2020 at 8:14 am #1227120Hi 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,
NikkoJuly 1, 2020 at 10:00 am #1227197Thank 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?July 2, 2020 at 5:36 am #1227376Hi osovskie8,
Can you give us the username as well?
Best regards,
NikkoJuly 2, 2020 at 6:10 am #1227389Attached
July 2, 2020 at 7:03 am #1227399Hi osovskie8,
Thanks, I have made the changes, please review your site. :)
Best regards,
NikkoJuly 2, 2020 at 5:23 pm #1227549Thank you:) it is working.
Regarding your changes. can I update the child theme? is there anything I should do different?July 3, 2020 at 6:38 am #1227660Hi,
Yes you can update the child theme. The changes will still remain.
Best regards,
Jordan Shannon -
AuthorPosts
- You must be logged in to reply to this topic.