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.
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
Hi,
You can find that file under Appearance->Theme file editor in the WordPress menu.
Best regards,
Rikard
Hi I tried adding the code but it didn’t work. Is there anything else I can try?
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.