Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1334198

    I have portfolio grids and they are not displaying correctly. There is too much padding between rows

    #1334367

    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

    #1334379

    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

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.