Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #978059

    Hello,

    I am using the portfolio grid element on my website and I just noticed that when the page first loads on Chrome, it is condensing all of the images. If I reload or resize the window, it displays correctly, but not when I first visit the page. I’m not when it started, but I know it wasn’t always behaving this way. I checked it on Safari and Firefox and it works just fine, so it’s just a problem with Chrome. Is there any way to fix this? Thank you!
    Screenshot

    #978681

    Hey Kirstie,

    Thank you for using Enfold.

    The items are not re-positioning correctly. Please add this script in the functions.php file.

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

    You may need to purge the cache or temporarily disable the css/js compression in the Enfold > Performance panel.

    Best regards,
    Ismael

    #978910

    That worked! Thanks!

    #979547

    Hi,

    Great, glad you got it working. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #980111

    It can be closed, thanks!

    #980443

    Hi,

    Thanks for letting us know. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Portfolio Grid Displaying Incorrectly on Chrome’ is closed to new replies.