Title: Support lazy load?
Last modified: August 30, 2016

---

# Support lazy load?

 *  Resolved [Lakjin](https://wordpress.org/support/users/lakjin/)
 * (@lakjin)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/support-lazy-load/)
 * Is there any way to make this plugin display images in such a way that lazy load
   is supported? I dont want lazy load added to this plugin; I just want the external
   images shown in a way that supports lazy loading.
 * [https://wordpress.org/plugins/external-featured-image/](https://wordpress.org/plugins/external-featured-image/)

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

 *  Plugin Author [David Aguilera](https://wordpress.org/support/users/davilera/)
 * (@davilera)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/support-lazy-load/#post-6892242)
 * I’m afraid it’s not possible. Featured images are inserted using a CSS background
   property ([see the FAQ](https://wordpress.org/plugins/external-featured-image/faq/))
   and, as far as I know, no lazy load plugin can deal with that.
 *  Thread Starter [Lakjin](https://wordpress.org/support/users/lakjin/)
 * (@lakjin)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/support-lazy-load/#post-6892244)
 * Is it possible to change the code so that CSS background property is not used?
 *  Plugin Author [David Aguilera](https://wordpress.org/support/users/davilera/)
 * (@davilera)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/support-lazy-load/#post-6892246)
 * Yes, it is. Go to `includes/nelio-efi-main.php` line 59, where the function `
   nelioefi_get_html_thumbnail` is defined:
 *     ```
       function nelioefi_get_html_thumbnail( $id, $size = false, $attr = array() ) {
         if ( uses_nelioefi( $id ) === false )
           return false;
   
         $image_url = nelioefi_get_thumbnail_src( $id );
         // ...
   
         if ( is_feed() ) {
           $style = '';
           if ( isset( $attr['style'] ) )
             $style = 'style="' . $attr['style'] . '" ';
           $html = sprintf( ...
         } else {
           $html = sprintf( ...
         }
   
         return $html;
       }
       ```
   
 * Change this:
 *     ```
       if ( is_feed() ) {
       ```
   
 * to this:
 *     ```
       if ( true ) {
       ```
   
 * This way, the image will be inserted using the `src` attribute of an `img` tag,
   instead of a CSS background property.
 *  Thread Starter [Lakjin](https://wordpress.org/support/users/lakjin/)
 * (@lakjin)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/support-lazy-load/#post-6892251)
 * Thanks, worked well. Do you think you will add this as an option for the plugin
   in the future? This way this sticks when the plugin is updated.
 *  Plugin Author [David Aguilera](https://wordpress.org/support/users/davilera/)
 * (@davilera)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/support-lazy-load/#post-6892260)
 * Sure! I can add that as a setting.
 *  Thread Starter [Lakjin](https://wordpress.org/support/users/lakjin/)
 * (@lakjin)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/support-lazy-load/#post-6892263)
 * Great, thanks!
 * Another question. By default, your plugin automatically replaces featured images
   with external image, if there is an external image. Is there a function I can
   manually call to display external featured image?
 * What I’m looking to do is add a specific property to the img src tag to stop 
   lazy load on specific images. However, I would need to manually call the external
   featured image to do that, because I don’t see any other way to selectively disable
   lazy load.
 *  Plugin Author [David Aguilera](https://wordpress.org/support/users/davilera/)
 * (@davilera)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/support-lazy-load/#post-6892417)
 * Our plugin includes a function called: `nelioefi_get_thumbnail_src($post_id)`,
   which returns the URL of the external featured image used by the post `$post_id`,
   or `false` if no external feat. image is used. I hope this helps!

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

The topic ‘Support lazy load?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/external-featured-image_947a5f.svg)
 * [Nelio External Featured Image (discontinued) - Available in Nelio Content](https://wordpress.org/plugins/external-featured-image/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/external-featured-image/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/external-featured-image/)
 * [Active Topics](https://wordpress.org/support/plugin/external-featured-image/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/external-featured-image/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/external-featured-image/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [David Aguilera](https://wordpress.org/support/users/davilera/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/support-lazy-load/#post-6892417)
 * Status: resolved