Unable to add ninja Forms to lazy load exceptions

[ad_1]

Hello @wizzzzard,

I have reviewed your site and the images loaded on your ninja form do not have CSS classes assigned. This is why you cannot exclude them using the Classes exclusion list.

In this case, you can exclude the entire page from the Lazy loading by adding the following filter to the functions.php file of the active theme:

add_filter( 'sgo_lazy_load_exclude_urls', 'exclude_lazy_load_for_url' );
function exclude_lazy_load_for_url( $excluded_urls ) {
    // Add the url that you want to exclude from using lazy load.
    $excluded_urls[] = 'https://affordableraw.co.uk/calculator';

    return $excluded_urls;
}

Wonderful, that worked, thank you for looking into this for me

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer