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

    Gallery 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.jpg

    We 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, Jan

    #1424415

    Hey 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,
    Ismael

    #1424483

    Hey 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
    Jan

    #1424536

    Hi,

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

    #1424537

    Hi,

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

    #1424540

    Hi,

    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.jpg

    Any idea?

    Sorry and thank you for the effort
    Jan

    #1424718

    Hi,
    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,
    Mike

    #1424793

    Hi 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,
    Jan

    #1424812

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

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Gallery issue with “open the images in a new browser/window tab”’ is closed to new replies.