Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1317750

    Hi
    The margin between the portfolio rows used to be exactly the same width as the gap between the columns, but suddenly they are massive:
    https://snipboard.io/NGb7DM.jpg

    Can you help me fix this? The kind of shrink to where they need to be when you resize the browser window back and forth. It’s really odd.

    Thanks for your help

    #1318207

    Hey june,

    Thank you for the inquiry.

    The space below the portfolio items returns back to normal when we resize the browser. Adding this script in the functions.php file should help.

    add_action('wp_footer', 'ava_auto_resize');
    function ava_auto_resize(){
    ?>
    <script>
    (function($){	
    	var int = window.setInterval(function(){
    		$(window).trigger('resize');
    	}, 1000);
    	
    	$(window).on("load", function () {	
    		setTimeout(function() {
    			clearInterval(int);
    		}, 1000);
    	});
    })(jQuery);
    </script>
    <?php
    }
    

    Best regards,
    Ismael

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