Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor WP Rocket

    (@wp_rocket)

    Hi,

    the best solution would be to exclude your logo from lazyload. You can do that with the following code:

    add_filter( 'rocket_lazyload_excluded_src', function ( $excluded ) {
        $excluded[] = 'white-logo';
    
        return $excluded;
    } );
    • This reply was modified 5 years, 9 months ago by WP Rocket.
    Thread Starter Pedro Cavaco Henriques

    (@pchenriques)

    Thanks @wp_rocket

    It worked out perfectly ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘image out of place’ is closed to new replies.