Selectively link to larger images?
-
I often upload and insert a whole bunch of images at once. They are all different sizes. If linking is on, it links *all* images to their original file. If it’s off, it links none of the images to their original file.
My max-width is 800px, so any image smaller than that is linking to the exact same file.
I currently use
update_option(‘image_default_link_type’,’none’);
to prevent it from automatically linking everything, every time, but then I have to manually link to images that are wider than 800px.Can you tell me something I could add to my child functions.php to tell it to *only* link to images that are wider than the Large image size designation?
I’ve searched, but all I can find is variants on turning linking off, which I already have.
Any help is appreciated, thanks!
- The topic ‘Selectively link to larger images?’ is closed to new replies.