Tagged: gallery
Masonry gallery is displaying flattened with small letterbox images on load
Issue resolved using this script and turning off animation:
add_action('wp_footer', 'ava_auto_resize');
function ava_auto_resize(){
?>
<script>
(function($){
var int = window.setInterval(function(){
console.log('tick');
$(window).trigger('resize');
$(window).trigger('av-content-el-height-changed');
}, 1000);
$(window).on('load', function() {
clearInterval(int);
});
})(jQuery);
</script>
<?php
}
Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon