Hi @delboy007
WordPress allows you to add images directly using a simple shortcode. The default [gallery] shortcode is generally used for galleries, but you can still use it for a single image by including just one image in the shortcode.
Example:
[gallery ids="50"]
If you’re using the Gutenberg editor (default block editor in WordPress), you don’t need a shortcode to add a single image. Simply:
- Click the “+” button to add a block.
- Select the Image block.
- Upload or select the image you want to use from the media library.
- You can adjust the alignment, size, and other settings directly in the block options.
I don’t use gutenberg. The shortcode doesn’t seem to work but even if it did I don’t thing it would behave like I want it to. I want to click on a thumbnail and have it open medium size in a popup. I used to be able to do this with a plugin years ago.
@delboy007 , You’re looking to have a clickable thumbnail that, when clicked, opens the medium-sized image in a popup (like a lightbox).
Recommended Lightbox Plugins:
- Simple Lightbox: <span style=”background-color: initial; font-size: inherit;”>Simple and easy to use. It will automatically enable lightbox functionality for all images on your site, but you can configure it to trigger on specific images (like a thumbnail).</span>After activation, the plugin should work automatically on all images.
- Easy FancyBox: <span style=”background-color: initial; font-size: inherit;”>Another lightweight plugin that adds a lightbox popup effect for images and galleries. It works on both individual images (like thumbnails) and galleries.</span> Once activated, it will automatically create a lightbox for your images.
- WP Featherlight: <span style=”background-color: initial; font-size: inherit;”>A very lightweight plugin that only activates the lightbox functionality, without bloating your site with unnecessary features.</span> After activation, it will automatically add a lightbox effect to your images when clicked.
Once activated, any image linked to the full-size version will automatically open in a lightbox when clicked.
Thank you so much. That is perfect.
Pushing my luck a bit, Is there any way of doing the same thing only with youtube videos ?
Sorry. Just seen firelight fancybox does just that. I can’t thank you enough
You’re very welcome! @delboy007