• Resolved wizzzzard

    (@wizzzzard)


    I am having trouble adding an expectation to Lazy Load and hopefully someone can point me in the right direction.

    I have created a form in NinjaForms, but when Lazy Load is enabled it will not display. I have tried adding the classes I can see to the exception section in the optimiser but none appear to work. Maybe I am missing something obvious or am doing it wrong.

    • This topic was modified 1 year, 6 months ago by wizzzzard.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Delyan Delov

    (@delyandelov)

    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;
    }

    Thread Starter wizzzzard

    (@wizzzzard)

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unable to add ninja Forms to lazy load exceptions’ is closed to new replies.