Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #873044

    Hi,

    I’ve got an odd behaviour with a home page using Enfold.

    I have a 2/3 1/3 grid for a top element that contains an easy slider in column 1 and buttons with a cell background in column two.

    Whenever the page loads, the grid seems to stretch to full height before contracting to the layout we want.

    We’ve tried to figure out what’s causing it and tried lots of different options but nothing seems to work.

    Any idea what causes it?

    Thanks

    Phil

    #873868

    Hey philthebass,

    If oyu remove your cache, that will be shorted and fixed !:)

    Best regards,
    Basilis

    #874093

    Thanks Basilis. Do you mean browser cache or the WP Rocket cache?
    Regards

    #874448

    Hi,

    Please try clearing both local and server cache. If that doesn’t work then please post admin login details in private so that we can have a closer look.

    Best regards,
    Rikard

    #875103

    Hi Rikard,

    I’ve cleared both and tried on different browsers and devices and it’s the same on all. It’s baffling me.

    Will set up a login for you.

    Thanks

    Phil

    #875708

    Hi Phil,

    In what browsers do you experience this behavior and on what OS?

    Best regards,
    Victoria

    #875709

    Hi Victoria,

    Mac: Chrome, Safari, Firefox
    W10: Edge and Chrome

    Thanks

    Phil

    #876453

    Hi,

    Thank you for the info. Please try 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
    }

    Don’t forget to remove the browser cache to refresh the scripts and stylesheets.

    Best regards,
    Ismael

    #876496

    Hi Ismael,

    I added the script to the child functions.php and cleared both the browser and WP Rocket caches and it still does the same thing. I’m baffled.

    Thanks

    Phil

    #877332

    Hi,

    Thank you for the update.

    The easy slider inside the first cell doesn’t have a “height” property on initial load. The script is a bit delayed. Please try this code in the Quick CSS field.

    @media only screen and (min-width: 768px) { 
        #home-top-head .avia-slideshow-inner {
            min-height: 583px !important;
        }
    }

    Best regards,
    Ismael

    #877457

    Hi Ismael,

    I’ve added that and it’s still doing it. Strange.

    Regards

    Phil

    #877946

    Hi,

    The stylesheets are cached. I deactivate the WP Rocket plugin temporarily. Please remove browser cache or hard refresh before checking the page again.

    Best regards,
    Ismael

    #878570

    Thanks Ismael.

    Which CCS should I exclude from caching with WP Rocket?

    Regards

    Phil

    #879459

    Hi,

    You don’t have to exclude anything. I just deactivated the plugin to refresh the stylesheets.

    Best regards,
    Ismael

    #879582

    Hi Ismael,

    The trouble is, if I re-enable WP Rocket, the issue returns, so should I consider excluding CSS from caching so I can use the other WP Rocket features?

    Thanks

    Phil

    #880044

    Hi,

    We excluded the “/wp-content/uploads/dynamic_avia/enfold.css” file from the minification.

    Best regards,
    Ismael

    #893192

    Hi Ismael,

    That strange resizing behaviour is still happening.

    I just can’t figure out what’s going on with it.

    Thanks

    Phil

    #893632

    Hi,

    Please replace the css modification with the following css code.

    @media only screen and (min-width: 768px) { 
        #home-top-head .avia-slideshow-inner {
            min-height: 583px !important;
            max-height: 583px !important;
        }
    }

    Best regards,
    Ismaelf

    #893679

    Hey Ismael,

    That did the trick :-)

    Thanks as always.

    Regards

    Phil

    #893980

    Hi Phil,

    Great, glad Ismael could help you out :-)

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

    Best regards,
    Rikard

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