• Resolved harryfielder

    (@harryfielder)


    Hi there,

    Loving the plugin – just wanted to bring up a conflict I found. If one is using BJ Lazy Load plugin for images, they do not display in the AMP template. It was brought up in a thread for other AMP for WP plugins but just wanted to raise it here.

    Disabling the lazy loading allows it to work nicely but would be good to have both ??

    Cheers!

Viewing 1 replies (of 1 total)
  • Plugin Author Weston Ruter

    (@westonruter)

    Thanks for the report. I suggest opening an issue with BJ Lazy Load to fix compatibility.

    Looking at their source code, I think you can actually add support yourself by putting the following code in a plugin or in your theme:

    add_filter( 'bjll/enabled', function( $enabled ) {
        if ( function_exists( 'is_amp_endpoint' ) && is_amp_endpoint() ) {
            $enabled = false;
        }
        return $enabled;
    } );
Viewing 1 replies (of 1 total)
  • The topic ‘Conflict with BJ Lazy Load’ is closed to new replies.