Support » Plugin: Battle Suit for Divi » Masonry Gallery Error

  • 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?


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

Viewing 7 replies - 1 through 7 (of 7 total)
  • pmregan


    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


    Are you using a lazy loading images plugin?

    Plugin Author 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

    (function($) {
    $(document).ready(function() {
    var evt = window.document.createEvent('UIEvents');
    evt.initUIEvent('resize', true, false, window, 0);



    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!


    • This reply was modified 4 months ago by idalodz.
    Plugin Author 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:

    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!


    Plugin Author 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)
  • You must be logged in to reply to this topic.