• Hi! I am using Lazy Load Comments Plugin to hide/lazy-load the comments.

    But there is one issue.

    It doesn’t hide the comment section if there is no comments.

    When There is No Comment: https://i.imgur.com/b3zGix0.png

    When There is/are Comment(s): https://i.imgur.com/b3zGix0.png

    How do I hide the comment section even if there is/are no comment(s)?

    Thanks.

    P.S.: I am using GeneratePress Child Theme.

    I can provide you the URL but not on Public Forum. If you have some Discord / Twitter or something where I could privately message you the URL.

    Thanks.

Viewing 1 replies (of 1 total)
  • Add this 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;
    });
Viewing 1 replies (of 1 total)
  • The topic ‘Hide Comment Box with Lazy Load?’ is closed to new replies.