BACK TO DIRECTORY

Make it Srcset

by Samuel Brynolf

0.0
(0 ratings)

Enables shortcode and a template tag to pull srcset-images by attachment-ID. This is way to complement WordPress built in srcset which (of course) focus on the_content images and media-sizes set in settings. Sometimes your layout demands more, or you are using other ways to put images on your site not using the_thumbnail or the_content. For example, I use Advanced Custom Fields a lot pulling images by ID.

Generated markup are built from a set of custom image-sizes and the, by you configured, (srcset-)sizes attribute. Use the settings-page for default values and override them any time in the shortcode or template tag.

  • Option: Generate shortcodes by the mediauploader-button.
  • Option: Enable simple lightbox functionality.
  • Option: Enable lazhyloading. Option: Include Picturefill

Full documentation at WordPress plugin: Make it Srcset

Plugin Details

Active Installs
10
Total Downloads
5,725
Version
2.0
Requires WP
4.4.0
Requires PHP
Tested Up To
4.7.35
Added
2016-04-08
Last Updated
2017-05-10 8:35am GMT

Ratings

5
0
4
0
3
0
2
0
1
0

Tags