Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1358830

    Every now and then when I load my website page, a large white space appears beneath the full width slider and the text block. Often I’ll reload the page and that space disappears. Do you know what might be causing this? I can send a screen shot if this doesn’t make sense.

    Thank you!
    Erin

    #1358850

    Hey es.design.ma,

    Thank you for the inquiry.

    Did you install a lazy loading plugin for images? Please try to deactivate the plugin temporarily, then test the page again. Or try this code in the functions.php file to automatically resize the slider 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

    #1358897

    Thank you. I’m not using a lazy load plugin and the settings on the Fullwidth Easy Slider are set to not use lazy loading. Plus it happens sporadically. Sometimes it loads perfectly. Other times it does not. Will adding the code to the bottom of the functions.php file help in this case?

    Thanks!
    Erin

    #1358986

    Hi,

    Thank you for the info.

    Yes, adding the script should help in this case. The script will force the slider to resize automatically/properly removing the white space below. Please make sure to purge the cache after adding the script.

    Best regards,
    Ismael

    #1359091

    I added the script to the theme’s function.php file but I’m still getting the white space. I purged the cache. Is there anything else I can do?
    Erin

    #1359130

    Hi Erin,

    Can we access the site? We would like to check if the script is actually running. Please provide the login details in the private field.

    Thank you for your patience.

    Best regards,
    Ismael

    #1359207

    Thank you!
    Erin

    #1359219

    Hi,
    Thank you for the link to your site, this error is typically caused by the Smush lazy load option, which is enabled on your site:
    2022-07-22_002.jpg
    assuming that you don’t want to disable this feature for your whole site, you can disable it for just the front page.
    2022-07-22_003.jpg
    after disabling please clear your browser cache and check.

    Best regards,
    Mike

    #1359472

    Thank you!! This worked.

    #1359483

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Large empty space on page load’ is closed to new replies.