Add lazy load to all images

resolved (4 posts) (2 voices)

  1. gaetan
    Member

    I would like to know how to set the nice lazy load effect on images coming from a third party plugin (in widget, short cade etc.).

    Thanks

    Posted 3 months ago #
  2. Elliott
    Support

    Hello gaetan,

    Your wanting to add a preload effect to images coming from your plugin?

    I'm sorry but this is going to have to be considered custom work and it would be best to hire a freelancer to help you with this customization.

    Posted 3 months ago #
  3. gaetan
    Member

    Hi Eliott, I'm a webdeveloper myself.
    Just tell me ;)

    Posted 3 months ago #
  4. Elliott
    Support

    You can try using our preloader, a good example of how you would do it is on lines 98 - 110 in /wp-content/themes/[your_theme]/lib/shortcodes/18-images.php.

    $out .= mysite_display_image( array(
    				'src' => $img,
    				'alt' => '',
    				'title' => '',
    				'height' => $height,
    				'width' => $width,
    				'class' => ( $class == 'true' ? 'hover_fade_js' : '' ),
    				'link_to' => $img,
    				'link_class' => 'fancy_image_load',
    				'prettyphoto' => true,
    				'group' => $group,
    				'preload' => true
    			) );
    Posted 3 months ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme