Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #751685

    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.

    #751686

    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'; }
    • This reply was modified 7 years, 10 months ago by cyrusis.
    #751688

    Hi,
    Thank you for sharing.

    Best regards,
    Mike

    #1103784

    Awesomesauce, cyrusis — THANK YOU!

    #1105900

    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!!

    #1106073

    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

    #1106154

    Golden — thanks, Mike!

    #1106170

    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

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Enfold Masonry images, once expanded (lightbox), don't load full size image.’ is closed to new replies.