Tagged: lightbox image size
-
AuthorPosts
-
April 20, 2017 at 2:23 pm #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
EdApril 25, 2017 at 6:16 am #782653Hey 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,
IsmaelApril 25, 2017 at 7:49 am #782691Hi 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 7 years, 8 months ago by Swarez.
April 25, 2017 at 9:16 am #782705maybe 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.
April 25, 2017 at 6:04 pm #783030it is hard to prove if conditonal mouse button is not usable
April 25, 2017 at 7:18 pm #783046Thank you so much @guenni007 – it works perfectly!
Very kind of you and much appreciated.
Thank you again
Regards
EdApril 26, 2017 at 5:28 am #783227Hi,
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,
RikardApril 26, 2017 at 9:29 am #783344All seems to be working Rikard so by all means close the thread – thank you!
Best wishes
EdApril 27, 2017 at 5:02 am #783768 -
AuthorPosts
- The topic ‘Lightbox image size’ is closed to new replies.