• Hello, this works only if you have comments. It does not work in case you have zero comments. How to lazy load comments in case of zero comments. How to hide comment box?

Viewing 2 replies - 1 through 2 (of 2 total)
  • juicelewis

    (@juicelewis)

    I managed to make it work. Just add the following code to your functions.php file:

    add_filter( 'llc_can_lazy_load_minimum_count', function () {
        // Lazy load only if there are 0 or more comments.
        return 0;
    });

    Many thanks asrme (@asrme),

    I’m using this Plugin as a spam filter, and was fuzzled to see this strange behavior!

    I was also expecting to roll up my sleeves and sort it out, but thought to check if anyone else had noted this weird condition.

    Can’t believe how happy I was to discover that you did all the hard work for me, many thanks again!

    Plugin Author, .. it’s a neat fix.

    Stay safe.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Not working if comments are zero’ is closed to new replies.