Hello,
I use the avia element “Gallery”. There image styles are used in the lieghtbox if the image exceeds a certain size. Would it be possible to always display the original image in the lightbox (the original image file).
Hope there is a filter or another solution for this.
Thanks
Chris
can you try this in your child-theme functions.php:
function custom_alb_lightbox_image_size( $size, $context ){
if( $context == ('av_gallery' || 'avia_masonry') ){
return 'original';
}
return $size;
}
add_filter( 'avf_alb_lightbox_image_size', 'custom_alb_lightbox_image_size', 10, 2 );
here both (gallery and masonry-gallery) will be influenced.
thanks! That worked!
cheers
Chris
Hi,
Great, I’m glad that @guenni007 could help you out. Please let us know if you should need any further help on the topic, or if we can close it.
Best regards,
Rikard