What version of FooGallery are you using? You can try using the develop branch to see if that fixes your issue : https://github.com/fooplugins/foogallery/archive/develop.zip
Otherwise, pls post your site’s URL so I can have a look
Hello!
Already I fixed that issue by changing \extensions\default-templates\gallery-masonry.php. I changed script which was generated by PHP – from jQuery to Vanilla JavaScript and moved script AFTER HTML.
<div id="foogallery-gallery-<?php echo $current_foogallery->ID; ?>" class="<?php echo foogallery_build_class_attribute( $current_foogallery, 'foogallery-lightbox-' . $lightbox ); ?>">
<?php foreach ( $current_foogallery->attachments() as $attachment ) {
echo ' <div class="item">' . $attachment->html( $args ) . '</div>
';
} ?>
</div>
<script>
var container_<?php echo $current_foogallery->ID; ?> = document.getElementById("foogallery-gallery-<?php echo $current_foogallery->ID; ?>");
var msnry = new Masonry( container_<?php echo $current_foogallery->ID; ?>, {
itemSelector: '.item',
columnWidth: <?php echo $width; ?>,
gutter: <?php echo $gutter_width; ?>,
isFitWidth: <?php echo $center_align ? 'true' : 'false'; ?>
});
</script>
@tomciopl Well, I don’t really want to edit the plugin files directly if I can avoid it, but thanks.
@bradvin I tried the dev version with the same result. Here is the link to the page: http://tpsonline.org/tickets/ You can see all the images at the bottom. Thanks.
This has seemed to fix itself as mysteriously as it broke. Looked at the page again today and it’s working fine again. I haven’t made any changes to code or theme settings, so it’s very strange…