• Resolved serezh4

    (@serezh4)


    Hi! I updated the plugin and noticed a new feature – lazy load.

    New Feature: Introducing Lazy Loading filter. Use rpt-lazy-loading filter to enable the lazy loading for thumbnails. By default it’s false.

    Can you please tell me, where and how I can use rpt-lazy-loading filter?

    I’m now using <?php get_related_posts_thumbnails(); ?> php tag in the Loop of my theme and also as widget in the sidebar.

    • This topic was modified 3 years, 10 months ago by serezh4.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Muhammad Arslan

    (@wparslan)

    Hi @serezh4

    The filter will be used in your functions.php file of your theme.

    /**
    * Enable Lazy Loading for Related Posts Thumbnails
    *
    * @return bool
    */
    function enable_lazy_loading_thumbnails() {
    return true;
    }
    
    add_filter( 'rpt-lazy-loading', 'enable_lazy_loading_thumbnails' );

    It will lazy load the Related Posts thumbnails.

    Cheers ??

    Regards,
    Team Related Posts

    sally

    (@sallyruchman)

    Thanks Muhammad! Lazy Load is working now:)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to enable “Lazy Load”?’ is closed to new replies.