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

    Hi every one, I have a small problem on enfold using the WPRocket extension. When I activate the lazyload option in order to delay the images loading to save time, the logo never appears in the header. I have first checked on WPRocket forums and I have found some solutions to disable lazyload on a specific image or a specific class but I don’t know how to apply this fix in my case…

    • This topic was modified 1 year, 1 month ago by  cfourtune.

    Hey cfourtune,

    Thank you for using Enfold.

    You can add this filter in the functions.php file to prevent the logo from lazy loading.

    function rocket_lazyload_exclude_src( $src ) {
    	$src[] = 'caramel-mocha-filled-cupcake';
    	return $src;
    add_filter( 'rocket_lazyload_excluded_src', 'rocket_lazyload_exclude_src' );

    Replace the src value with the actual file name of your logo.

    Best regards,


    Hi Ismael, Thanks a lot, it works fine !



    Great, I’m glad that 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,


    It can be closed. Thanks.



    Thank you!

    Best regards,

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘WPRocket Lazyload and logo Header’ is closed to new replies.