Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1428740

    Hello,
    I have a gallery masonry, set to “Flexible masonry” and “no scaling (original width x original height). The images open in a lightbox. My problem is that they are automatically cropped and appear blurred. When I inspect the code, I see that “1030×687” has been added to the image name.

    How can I get the images to appear in the lightbox in their original size?

    Thanks in advance

    Audrey

    #1428753

    Hey laboiteapixels12,
    Thank you for your question, the no scaling (original width x original height) option in the Masonry Gallery element is for the image that in shown on the frontend, to have the lightbox image also show the original image try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    function change_lightbox_size($size){
      return "full";
    }
    add_filter('avf_avia_builder_masonry_lightbox_img_size', 'change_lightbox_size', 10, 1);

    Best regards,
    Mike

    #1429129

    Hi,

    Thank you very much, it’s perfect !! You can close this ticket :)

    And happy new year !!

    Audrey

    #1429139

    Hi,

    Great, I’m glad that Mike could help you out. We’ll close this thread for now then, please open a new thread if you should have any further questions or problems.

    Happy new year :-)

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Images in masonry gallery automatically cropped.. they appeared blurred’ is closed to new replies.