• delboy007

    (@delboy007)


    I haven’t used image plugins for a while but when I did I used to be able to put a single image in a page using shortcode. I can’t find a plugin now that does that. You only seem to get shortcodes for galleries

Viewing 6 replies - 1 through 6 (of 6 total)
  • ranjeetkaur

    (@ranjeetkaur)

    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:

    1. Click the “+” button to add a block.
    2. Select the Image block.
    3. Upload or select the image you want to use from the media library.
    4. You can adjust the alignment, size, and other settings directly in the block options.
    Thread Starter delboy007

    (@delboy007)

    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.

    ranjeetkaur

    (@ranjeetkaur)

    @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:

    1. 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.
    2. 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.
    3. 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.

    Thread Starter delboy007

    (@delboy007)

    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 ?

    Thread Starter delboy007

    (@delboy007)

    Sorry. Just seen firelight fancybox does just that. I can’t thank you enough

    ranjeetkaur

    (@ranjeetkaur)

    You’re very welcome! @delboy007

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.