Skip to content

HeikoMamerow/wp-get-attachment-image-lazy-slick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WP-get-attachment-image-lazy-Slick

WordPress Plugin sets attachment image markup for Slick lazy loading.

Description

Slick slider needs a special markup for his lazy loading. This plugin use the origin function wp_get_attachment_image() but changed the attributes src to data-lazy and srcset to data-srcset.

Frequently Asked Questions

How to use?

  • Install and activate the plugin.
  • Instead of using wp_get_attachment_image() use wp_get_attachment_image_lazy_slick() in your theme.
  • The parameters are same like wp_get_attachment_image()

Will this plugin install Slick?

No, you need to install Slick separately.

Changelog

1.0.0

  • Initial release.

About

It's an WordPress Plugin. Set attachment image markup for Slick lazy loading.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages