I have portfolio grids and they are not displaying correctly. There is too much padding between rows
Hey briandeeney,
Thank you for the inquiry.
Are you using a different image lazy loading plugin or option? Please try to disable it temporarily, then check the page again. You can also add this script in the functions.php file to force the items to reposition on page load.
add_action('wp_footer', 'ava_auto_resize');
function ava_auto_resize(){
?>
<script>
(function($){
var int = window.setInterval(function(){
$(window).trigger('resize');
}, 1500);
$(window).on("load", function () {
setTimeout(function() {
clearInterval(int);
}, 500);
});
})(jQuery);
</script>
<?php
}
Best regards,
Ismael
Hi Ismael
I am using sitegrounds SG Optimizer
I have dis-abled lazy loading setting of SG Optimizer and portfolio grids now appear fine
Will keep an eye on it over next few days