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
(4 posts)
(2 voices)
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
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.
Hi Eliott, I'm a webdeveloper myself.
Just tell me ;)
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
) );
You must log in to post.