As the title states. When an image in a masonry display is expanded, it loads a smaller than full size variation of the image. How do I get this to display the full size image?
Example: It will pop up with coolphoto-1030×687.jpg rather than coolphoto.jpg (with a much larger dimension). This is causing photos to look blurry.
Cancel that, figured it out.
For anyone requiring similar functionality in the future, just add this code to functions.php:
add_filter('avf_avia_builder_masonry_lightbox_img_size','avia_change_image_size_masonry', 10, 1);
function avia_change_image_size_masonry($size){ return 'full'; }
Awesomesauce, cyrusis — THANK YOU!
I just realized I’m having the same issue with the lightbox versions of individual images, using the Media > Image element — for example, the first two images on http://l2f.0b8.myftpupload.com/migrations-custom-4-col/ — do you know how I can modify that filter to include those versions as well? Thanks!!
Hi,
Try adding this code to the end of your functions.php file in Appearance > Editor:
add_filter('avf_avia_builder_helper_lightbox_size','avia_change_image_size_lightbox', 10, 1);
function avia_change_image_size_lightbox($size){ return 'full'; }
Best regards,
Mike
Golden — thanks, Mike!
Hi,
Glad we were able to help, we will close this now due to it being started two years ago. Thank you for using Enfold.
For your information, you can take a look at Enfold documentation here
For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)
Best regards,
Mike