Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
February 24, 2026 at 3:18 pm #1495429
Dear Enfold Theme,
We are currently implementing a gallery page where a lightbox opens in a gallery with additional data and the image. Unfortunately, the image is only displayed partially. We are using the following function for this:$grid = new avia_post_grid( array( 'linking' => ‘’, ‘columns’ => ‘3’, ‘contents’ => ‘title’, ‘sort’ => ‘no’, 'paginate' => ‘yes’, ‘set_breadcrumb’ => false, ‘preview_mode’ => ‘auto’, ‘image_size’ => ‘full’ )); $grid->use_global_query(); echo $grid->html( ‘’ );Highlighted in bold that the full images should actually be used. However, this does not seem to work.
February 24, 2026 at 5:15 pm #1495441i guess you only want to influence the lightbox images source. And because Enfold uses on default the large image. This does not always uses the original aspect ratio.
I would not influence the thumbnail sizes of the gallery. Only the lightbox source image.
If you are usiing the gallery element try: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 ); -
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
