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

    (@bjornjohansen)

    Sure:

    if ( is_home() ) {
      add_filter('bj_lazy_load_run_filter', '__return_false');
    }
    Thread Starter photoMaldives

    (@photomaldives)

    Thanks, Bjørn.

    I’m a noob at editing the php files, so an option in the plugin options panel would be great !

    Failing that, at a guess – do I stick your extra code at the bottom of :

    bj-lazy-load / bj-lazy-load.php ?

    Plugin Author bjornjohansen

    (@bjornjohansen)

    You should never edit WordPress core, plugins or themes directly. If you have your own custom theme or child theme, you may put it in your theme’s functions.php file.

    Otherwise, you can put it in a php file and put it in the /wp-content/mu-plugins folder (create it if it doesn’t exists). Rememer to start the content of the file with “<?php ”

    Thread Starter photoMaldives

    (@photomaldives)

    Great, thanks for your help Thanks, Bjørn. 🙂

    I am trying to disable plugin on an events calender page (because it won’t work)

    if ( is_page(‘events-calender’) ) {
    add_filter(‘bj_lazy_load_run_filter’, ‘__return_false’);
    }

    But it still runs. I tried to add to functions and header and footer. all failed.

    Disabling ” Apply to content” fixes my problem but that is site wide…..

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to disable on Home Page ?’ is closed to new replies.