• Hi, I’m having an issue with the masonry gallery. I have placed the gallery in a 1-column row and the first time the page is loaded the gallery is not shown properly (just few pieces of the top images). Apparently the row height is not working…
    Could you help me with that, please?

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • I’m having the same issue. It looks like the module is setting the row to 30px by default, and not listing to the page-load event to make the row dynamically sized.

    Plugin Author janthielemann

    (@janthielemann)

    Are you using a lazy loading images plugin?

    Plugin Author janthielemann

    (@janthielemann)

    If so, maybe this script can fix your issue. Feel free to vary the timeout to suit your needs. It can be placed in the header section in Divi Theme Options > Integration

    <script>
    (function($) {
    $(document).ready(function() {
    setTimeout(function(){
    var evt = window.document.createEvent('UIEvents');
    evt.initUIEvent('resize', true, false, window, 0);
    window.dispatchEvent(evt);
    },1000);
    });
    })(jQuery);
    </script>

    Hi,

    I used this code, but it is not help.
    All images was still crushed and I had to turn off lazy loading.

    Can I did something wrong? I left one free line after earlier script in my head.

    Is there another solution?

    best reagards!

    Ida

    • This reply was modified 5 years, 1 month ago by idalodz.
    Plugin Author janthielemann

    (@janthielemann)

    The problem with lazy loading images is that there are hundreds of plugins and they all do it slightly different. What you would need to do is find out how exactly the lazy loading plugin you use works and trigger a layout of the gallery once the images are loaded. Is there no way you can exclude the masonry gallery from lazy loading?

    Hi Jan,

    I excluded lazy loadying at all.

    I am fotographer and my gallery sometimes is very long and I hope i will be longer ??
    Take a look:
    https://wobiektywieidy.pl/sesje/sesja-noworodkowa-lodz-galeria/

    I hope you know, that time of loading is very important for SEO.

    May be pagination of gallery helps. What do you think?

    Best regards!

    Ida

    Plugin Author janthielemann

    (@janthielemann)

    Yeah maybe. Or maybe I can find some way to solve this lazy loading issue which works with all lazy loading plugins. :/ By the way, the plugin is open source so feel free to contribute if you find a solution. ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Masonry Gallery Error’ is closed to new replies.