Work with Images in Text Widgets?
-
Hi, I’ve actually been learning a lot about responsive images and what is now core in WP 4.4+ (from your nice plugin).
But I’m trying to find a solution that I can’t find much about in searching around: is there a way to have images that are added in widgets (standard Text widgets) receive the same responsive treatment that images in posts/pages/featured images now work?
We’ll have a fair amount of relatively large images placed on our site using good old fashioned HTML in a text widget. This just allows us the most flexibility with placement, additional caption text, and ease-of-use for clients. But it would be a bummer if all of these images weren’t optimized like the images placed in pages or posts (which we’ll probably rarely see).
I know I could manually write up the srcset & sizes for the img source code and paste it in, but there will be quite a few of these, so trying to come up with a more efficient system. And seeing all that crazy markup would totally confuse our clients.
– Can this plugin, or any workaround in functions.php, give the same functionality to images in widgets as in posts/pages??
Thanks!
https://www.ads-software.com/plugins/ricg-responsive-images/
- The topic ‘Work with Images in Text Widgets?’ is closed to new replies.