Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #913972

    Hi, two problems with enfold lightbox:

    1- when I open image in lightbox, rectangular image remains too small (7360 × 4912 is loaded size). I would like a wider image.

    2 – if page has many images the long scroll bar remains in lightbox when I open an image

    thanks

    ps: this is the site for a photographer who would like to see his images in full screen

    #914102

    Hey czar,

    We would like to check it, however your site is still underconstruction, can you give us access so we can check it?

    Best regards,
    Nikko

    #914158

    Sorry Nikko, this token is valid for the next 3 days
    thanks

    #914163

    a small note in advance : are you shure you are loading a 7360px wide image?
    if so – it is completely unnecessary to load such sizes. Even if gallery does load full size images. On default i think Enfold would load the “large” one.
    Your dimensions will be ok for 2.6m x 1.7m Screens

    #914314

    thanks guenni
    I know, but I was desperate I tried all measures including full

    #914455

    well – you can influence the image is taken on galleries or masonries by adding some code to functions.php of your child-theme:

    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);
    
    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);
    • This reply was modified 6 years, 10 months ago by Guenni007.
    #914459

    Hey,


    @guenni007
    Thanks for your help as always :)

    Regards,
    Yigit

    #914468

    fantastic, it seems solved problem, which is probably not just mine
    thanks guenni!

    #914479

    by the way if you got only an image alb solo and have lightbox link on that:

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

    see here: https://webers-testseite.de/gallery-and-masonry/

    #914482

    Hey,

    Glad @guenni007 could help!


    @guenni007
    Thanks :)

    Regards,
    Yigit

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘PROBLEMS WITH ENFOLD LIGHTBOX’ is closed to new replies.