• Resolved jorgitobg

    (@jorgitobg)


    Hi,
    I need to complete disable lazyload plugin on certain custom pages, something like:

    // DEACTIVATE A3 LAZY LOAD
    add_filter( ‘a3_lazy_load_run_filter’, ‘__return_false’ );

    I tried: add_filter( ‘data-no-lazyload’, ‘__return_false’ );, but doesnt work.

    Any sugestion?

    Regards

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Florian Brinkmann

    (@florianbrinkmann)

    Hi,

    currently, that is not possible by default. The next version of the plugin (I hope to release it soon, but … time) will have that option via a checkbox on the page/post edit screens.

    Until then, you could use this solution: https://wordpress.org/support/topic/disable-on-page-2/#post-10864092

    You would need to update that when the new version comes, but I do not expect it to happen in the next few days.

    Hope that helps,
    Florian

    Hi @jorgitobg,

    Also there’s this fantastic plugin I’ve used for years, Plugin Organizer, that would do the trick for you. It will work for any plugin you want to disable on a per page basis or even by post type, by user role, using URL filters (with wildcards) and by other ways. Its UI could be more user friendly but it is reliable and powerful.

    Thread Starter jorgitobg

    (@jorgitobg)

    Thanks!

    Plugin Author Florian Brinkmann

    (@florianbrinkmann)

    Hey @jorgitobg,

    I released Lazy Loader 3.5.0 that comes with an option to disable Lazy Loader on specific pages/posts. And it brings a filter lazy_loader_disabled that lets you disable it programmatically (this should work: add_filter( 'lazy_loader_disabled', '__return_true' );).

    I hope that fixes your issue!

    Best,
    Florian

    Thread Starter jorgitobg

    (@jorgitobg)

    Nice!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘add_filter disable lazy load complete’ is closed to new replies.