• Thank you for this excellent plugin. Is there a way to make the images lazy load? These thumbnail images is the only warning i get about images on gtmetrix

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Arslan

    (@wparslan)

    Hi @liathess,

    This filter will be used in the functions.php file of your theme or child 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

    • This reply was modified 6 months, 1 week ago by Arslan.
    Thread Starter liathess

    (@liathess)

    This fixed it! Thank you so much 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Lazy load’ is closed to new replies.