Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1435888

    I have an issue where a white space sometimes appears below the header.

    Also I a full width masonry with a pop up animation does not show until you scroll past the element.

    This happens 50% of the time when you reload the page.

    Any help gratefully received.

    #1435939

    Hey stuart131,

    Thank you for the inquiry.

    We are not yet sure why the issue occurs but 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');
    	}, 1500);
    	
    	$(window).on("load", function () {	
    		setTimeout(function() {
    			clearInterval(int);
    		}, 500);
    	});
    })(jQuery);
    </script>
    <?php
    }

    Best regards,
    Ismael

    #1436002
    This reply has been marked as private.
    #1436026

    Hi,

    You can find that file under Appearance->Theme file editor in the WordPress menu.

    Best regards,
    Rikard

    #1436404

    Hi I tried adding the code but it didn’t work. Is there anything else I can try?

    #1436405

    It’s happening on all pages I make with a full width easy slider at the top. The white space appears underneath the full width easy slider 50% of the time when you reload the page. I have tried clearing the cache.

    #1436432

    Hi,
    The error with the white space looks like the wp-smushit lasyload error, try disabling the wp-smushit lasyload in the plugin and if that doesn’t help disable the plugin.
    Also ensure to clear your browser cache fully better tests.

    Best regards,
    Mike

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