Link only resized images
-
I’m not even sure if this is possible but …
I often upload dozens of pictures at once, all of varying sizes. I can either link them all to the original file or none. (Or do each one manually, which would be tediously tiresome.)
Images that are equal to or less than the width of my page are not resized by WordPress – but also don’t require a link to the original image, since you are already viewing that.
Images that are larger than the width are resized by WordPress and I would like to link the resized image to the original image size, as that would be valuable to my visitors.
As said above, when uploading in bulk, you pick either linked or not linked. Either way, you have to then manually edit the code in order to link to the larger images.
So it would be cool if there were something I could throw in functions.php or some other place in my child theme that would tell WordPress to only link to larger images of those it resized and to not link to images that it didn’t resize.
That’s probably more words than I needed, but I hope you understand what I’m trying to do. And hopefully you can help me find a solution.
Thanks!
- The topic ‘Link only resized images’ is closed to new replies.