Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1411046

    Hi,

    For our website we have a custom post type that uses the standard lightbox of Enfold. The resoltion of some oms the images looks lower than the original. We do’n have any compression plugins in place. Can you help to figure out what is causing this?

    Online version:
    https://www.funda.nl/koop/aerdenhout/huis-42137139-tollenslaan-6/
    and the image on our site: https://www.vanhuyse.nl/woningen/koop/woonhuis/aerdenhout/tollenslaan-6/

    Left original image and right the lightbox
    Left original image and right the lightbox on our site

    Left original image and right the lightbox
    Left original image and right the lightbox on our site

    Thanks for your help!

    Beste ragrds, Rogier

    #1411109

    there are different snippets for child-theme functions.php to influence the lightbox image source file.

    for image galleries:

    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);

    for masonry image galleries:

    function avia_change_masonry_thumbnail_link($size){
      return "full";
    }
    add_filter('avf_avia_builder_masonry_lightbox_img_size', 'avia_change_masonry_thumbnail_link', 10, 1);

    or for single image lightbox size:

    function change_lightbox_size() {
        return "full";
    }
    add_filter('avf_avia_builder_helper_lightbox_size','change_lightbox_size', 10);
    #1411299

    Thank you for your response. Will try this.

    Best regards, Rogier

    #1411313

    Hi,

    Thanks for helping out @guenni007 :-)

    Best regards,
    Rikard

    #1411369

    Hi,

    Unfortunatily it’s not working. I’ve added this code and tried also fullsize instead off full but the 1030 size is loaded and not the full size off the image.
    Do you’ve any suggestions? Example off the lightbox is found here: https://www.vanhuyse.nl/woningen/koop/appartement/haarlem/mr-jan-gerritszlaan-35/

    function change_lightbox_size() {
    return “full”;
    }
    add_filter(‘avf_avia_builder_helper_lightbox_size’,’change_lightbox_size’, 10);

    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);

    Regards,
    Kees

    #1411379

    are these Enfold galleries? What ALB did you use to insert these images?

    #1411380

    It’s an default Gallery which uses the Enfold magnify popup. It’s not an ALB block.

    Regards,
    Kees

    #1411383

    ALB – sorry means only Advanced Layout Builder – so it is the native Enfold Gallery – but i see some tabs there

    #1411386

    Thanks! Your question helped me solve the problem. It was hard in the template off the single page.
    I’ve changed to ‘full’ and it works correct!
    $photo = wp_get_attachment_image_src($foto->ID, ‘full’);

    Thanks a lot.

    #1411389

    u bent van harte welkom

    #1411422

    Hi,

    Thanks for helping out @guenni007 :-)

    Best regards,
    Rikard

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.