Support » Plugin: Responsive Gallery Grid » RGG And Separate Masonry.js Section

  • Resolved tgiokdi

    (@tgiokdi)


    I have a couple sites that have a “related posts” section that I’ve hand crafted a div with masonry.js, and it appears that RGG and my bespoke div are interferring with each other. I’m pretty new to the masonry concept, so I’m using the examples from the Masonry.js “Layout” section. I’m assuming that RGG is using masonry.js as well, though I can’t find any direct evidence of that in it’s code.

    Do you have suggestions for using RGG in the post body, then using masonry.js in a separte div further down the page? Right now 1/10 of my page loads result in one of the other being formatted oddly with overlapping images and JS errors about masonry not being initialized properly.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    nope RGG is not using masonry. It’s all custom javascript and jQuery

    Thread Starter tgiokdi

    (@tgiokdi)

    masonry is a js solution for image layout, I’m assuming that RGG is uninitializing something that masonry is looking to trigger on so it never gets to fire off when there’s RGG content on the page.

    Thread Starter tgiokdi

    (@tgiokdi)

    For anyone else having this issue, WordPress does some form of a safe mode for JS that you have to escape from to run your own scripts.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘RGG And Separate Masonry.js Section’ is closed to new replies.