my images should open to that version on click.
Open to where? A new page? Then select “link to image file” in the image’s options.
Open in situ? This is ill advised because the browser would need to reflow the rest of the page in order to accommodate the change in size. This can be disorienting to the user. This is not a good option IMO. I don’t think your theme supports this. If you want to confirm, ask in the theme’s dedicated support forum.
IMO the lightbox effect as it is is a good solution. FWIW it’s not a true popup, it’s actually a modal designed to appear like a popup. From a user standpoint there’s little difference. A big difference to web developers.
Thread Starter
rooofl
(@rooofl)
Thank you for your answer.
I am referring to image file size (actual dimensions of the image), not about graphic (CSS) size.
Open to where? A new page? Then select “link to image file” in the image’s options.
I just want to make a hyperlink to a specific file size, in my case, “big” not “original”. Then JS popup or not, I’ll manage that later as most library are based on link’s href
That is strange because I found very few topics about that, and it was very handy to do so with previous versions of wordpress.
-
This reply was modified 2 years, 3 months ago by
rooofl.
-
This reply was modified 2 years, 3 months ago by
rooofl.
The only options for linking from the default image block is either the image’s attachment page or the original file (or none). There is no option to link to a specific registered size.
The attachment page may or may not use the “big” image size, it depends upon your theme. This page likely includes the usual theme header and footer and other image meta, so might be undesirable for your situation.
To link to the “big” size media file, you’d either need a custom image block or there might be a plugin that includes this as an option. I’m not aware of any such plugin, but that does not mean one does not exist.
The other option of course would be to only upload images that are already at the “big” size so linking to the original media file is for the big size as well.
Thread Starter
rooofl
(@rooofl)
That is very clear. Thank you. I am going to investigate Themes and Plugins side.