-
AuthorPosts
-
November 1, 2023 at 3:52 pm #1424328
Please look at this page: https://wochenspiegel-hannover.de/test/
In this gallery we’ve integrated the images from media like:
https://wochenspiegel-hannover.de/wp-content/uploads/2023/10/Seite08_wospie_2123-scaled.jpgGallery Style: Small Images (Thumbnails)
Size of Thumbnails: No Scaling (Original x Original)
Advanced -> Image-Link: “open the images in a new browser/window tab”Why does it open this one in a new browser tab (downsized to 689×1030!)?
https://wochenspiegel-hannover.de/wp-content/uploads/2023/10/Seite08_wospie_2123-689×1030.jpgWe want to open the original size in a new browser tab:
https://wochenspiegel-hannover.de/wp-content/uploads/2023/10/Seite08_wospie_2123-scaled.jpg
How can we do that?
Thank you, JanNovember 2, 2023 at 4:38 pm #1424415Hey Jan,
Thank you for the inquiry.
Why does it open this one in a new browser tab (downsized to 689×1030!)?
That is the maximum size for the “large” thumbnail, which is the default thumbnail used in the gallery lightbox. You can adjust this size in the Settings > Media panel. Please check the documentation below for more info.
// https://wordpress.com/support/media-settings/
Best regards,
IsmaelNovember 3, 2023 at 9:14 am #1424483Hey Ismael,
thank you. Unfortunately increasing the “large” thumbnail size via settings doesn’t change anything.
I’ve checked the existing thumbnail images in the upload folder (via FTP). The biggest one is “Seite08_wospie_2123-1371×2048.jpg”. Regarding to this size I changed the settings from 1030 / 1030 to 2048 / 2048.
When I refresh https://wochenspiegel-hannover.de/test/ and click the first image, it still opens “Seite08_wospie_2123-689×1030.jpg” in a tab.
What can I do?
Thank you
JanNovember 3, 2023 at 10:57 am #1424536Hi,
Thank you for the update.
After resizing the thumbnail size, you have to upload the images again or use a plugin to regenerate the thumbnails. The existing thumbnails will not automatically inherit the updated size configuration.
// https://wordpress.org/plugins/regenerate-thumbnails/
Best regards,
IsmaelNovember 3, 2023 at 10:58 am #1424537Hi,
Thank you for the update.
After resizing the thumbnail size, you have to upload the images again or use a plugin to regenerate the thumbnails. The existing thumbnails will not automatically inherit the updated size configuration.
// https://wordpress.org/plugins/regenerate-thumbnails/
Best regards,
IsmaelNovember 3, 2023 at 11:21 am #1424540Hi,
I’ve installed and used the Regenerate Thumbnails PlugIn für the “Seite08_wospie_2123-scaled.jpg” image (first one on https://wochenspiegel-hannover.de/test/). After click it still comes Seite08_wospie_2123-689×1030.jpg.
I also changed the max. size of large thumbnails to 1500 / 1500 and regenerated the thumbnails again – still Seite08_wospie_2123-689×1030.jpg.
In the upload folder I can see:
Seite08_wospie_2223-1004×1500.jpg
Seite08_wospie_2223-1371×2048.jpgAny idea?
Sorry and thank you for the effort
JanNovember 5, 2023 at 12:33 pm #1424718Hi,
Thank you for your patience, when I check your test page the images open in a new tab and not in the “lightbox” is this by intention? I believe that one of the following snippets will help, try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:function avia_change_gallery_thumbnail_link($link, $attachment, $atts, $meta){ $link = wp_get_attachment_image_src($attachment->ID, "full"); return $link; } add_filter('avf_avia_builder_gallery_image_link', 'avia_change_gallery_thumbnail_link', 10, 4);
if that one doesn’t help, please remove it and try this one:
function change_lightbox_size() { return "full"; } add_filter('avf_avia_builder_helper_lightbox_size','change_lightbox_size', 10);
if neither of these help, please include an admin login in the Private Content area so we can examine further.
Best regards,
MikeNovember 6, 2023 at 3:03 pm #1424793Hi Mike,
yes, we would like to open it in a new tab, because the user can zoom it easily.It works with the first script. Great, thank you.
Best Regards,
JanNovember 6, 2023 at 6:26 pm #1424812Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Gallery issue with “open the images in a new browser/window tab”’ is closed to new replies.