independent-publisher icon indicating copy to clipboard operation
independent-publisher copied to clipboard

Use responsive images

Open jefferyto opened this issue 6 years ago • 1 comments

These changes work with the built-in responsive image functionality added in WordPress 4.4, to allow browsers to download smaller images when possible.

These changes affect:

  • Content images
  • Featured images
  • Post covers (both "regular" and with post titles overlaid on top)
  • Custom header image

These changes are modelled after similar code in the Twenty Sixteen and Twenty Seventeen themes. (Current code for these themes are slightly different than their GitHub versions, but its much easier to link to the GitHub versions :laughing:)

I've tried to be as backwards-compatible as possible (both with older versions of WordPress and with IE<9) but TBH I've only tested these changes with the latest browsers and WP (4.9.8).

jefferyto avatar Sep 11 '18 19:09 jefferyto

@jefferyto Thanks very much for the PR! I've been slow to work on this project, but I very much appreciate the contributions. I will take a look at merging this for the next release.

I noticed your PR appears to include my changes from https://github.com/raamdev/independent-publisher/pull/325, so I will likely favor your PR over mine. :-)

raamdev avatar Mar 27 '23 19:03 raamdev