Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #780537

    Hi
    Recently I have noticed that single images are displaying the wrong size image in the Lightbox.
    See this: https://www.swarez.co.uk/modern-art-paintings-for-sale/darkness-eradicator/ – the native image I uploaded with ALB should be 1265x1250px but instead the Lightbox is showing me the 1030x1018px version.

    I don’t want that – I want the full version.
    Bizarrely it doesn’t happen here: https://www.swarez.co.uk/modern-art-paintings-for-sale/out-of-the-blue/ – both single uploaded images display at their maximum native size.
    I originally posted this 2 years ago here: https://kriesi.at/support/topic/lightbox-image-size/#post-295108 and you gave me a fix. But maybe this doesn’t work any more?

    Can you have a look please?
    Thanks
    Ed

    #782653

    Hey Swarez,

    Thank you for using Enfold.

    Are you referring to the following image? (see private field)

    The “avf_avia_builder_gallery_image_link” filter is designated for images inside the gallery element. If you want to adjust the default lightbox thumbnail size, go to the Settings > Media panel then adjust the dimension of the “Large size” thumbnail. Regenerate the images afterwards.

    // https://wordpress.org/plugins/force-regenerate-thumbnails/

    Best regards,
    Ismael

    #782691

    Hi Ismael
    Thank you for the reply – yes, that image you posted is an example of an image that won’t appear in full size in a Lightbox.
    Unfortunately your suggestion (already seen elsewhere on the forum) won’t work for me as all the images like the one you link to are different sizes and dimensions.
    I must have Lightbox render the full size image and not the values I set in the default WordPress media settings.
    You guys coded this two years ago for me and it has been working until the latest Enfold update (4.0.5). Now, anything new uploaded won’t work properly. Is this now a WordPress issue?
    You may also like to know that if I use the Gallery element from ALB, and use just one image, it renders at full size perfectly. As soon as I use the Image element it doesn’t.
    So it must be possible right?
    Thanks in advance
    Ed

    • This reply was modified 6 years, 12 months ago by Swarez.
    #782705

    maybe this could help you (put in functions.php of your child-theme) :

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

    btw: this is only for single images – you need for the galleries the other rule too.

    #783030

    it is hard to prove if conditonal mouse button is not usable

    #783046

    Thank you so much @guenni007 – it works perfectly!
    Very kind of you and much appreciated.
    Thank you again
    Regards
    Ed

    #783227

    Hi,

    Thanks for helping out as always @guenni007 :-)

    Let us know if you should need any further help on the topic Ed, or if we can close it.

    Best regards,
    Rikard

    #783344

    All seems to be working Rikard so by all means close the thread – thank you!
    Best wishes
    Ed

    #783768

    Hi Ed,

    Great, thanks for letting us know. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Lightbox image size’ is closed to new replies.