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

    (@jules-colle)

    Hi,

    Not sure what is happening exactly there, but it seems that if you call jQuery(window).resize(); after the page is loaded, the grid will adapt to the right size. Try and call this function with a delay if everything else fails. Something like this right before the closing </body> tag in your footer.php file:

    <script>
    jQuery(document).ready(function() {
      setTimeout(function() {
        jQuery(window).resize();
      }, 1000);
    });
    </script>
    Thread Starter nikkisantoro

    (@nikkisantoro)

    That fixed it, many thanks for your help!

    rikaro

    (@rikaro)

    Hi Jules. I’ve tried the code but it doesn’t fit it for me 🙁

    My site is:

    http://www.lovefrankly.com

    Plugin Author Jules Colle

    (@jules-colle)

    Hi rikaro,

    you are clearly not using RGG, and if you are, there is another plugin creating the gallery for you. Maybe it’s built into the theme. If that’s the case there’s not much I can do. Just disable RGG so it doesn’t conflict with the built-in gallery of your theme.

    Jules

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Gallery wider than than needed on load’ is closed to new replies.