WordPress.org

Ready to get started?Download WordPress

Forums

Simple Lightbox
[resolved] Option to turn off for image (4 posts)

  1. Paul G.
    Member
    Posted 4 months ago #

    Hey,

    As always, thank you for a great plugin... really appreciate the simplicity and the stability of your development!

    I wanted to ask if there is an option, or could you add the option, to perhaps add a class to a image whereby you wouldn't either:
    - resize the images to fit the lightbox, or
    - you could, on-demand, turn the lightbox off for a given image altogether. That is to say, by default I want SLB on images on posts, and I could add a class to an image that I don't want to have a lightbox open for clicking that image link.

    Does that make sense?

    Cheers!
    Paul.

    https://wordpress.org/plugins/simple-lightbox/

  2. Paul G.
    Member
    Posted 4 months ago #

    I found the option to not automatically resize the lightbox. Sorted.

    But it would be good to be able to say, set a CSS class that would exclude a particular image from have a lightbox link.

    Cheers!
    Paul.

  3. Archetyped
    Member
    Plugin Author

    Posted 4 months ago #

    Hi, you can use SLB's [slb_exclude] shortcode. Just wrap it around the content that you want to exclude from SLB :)

    More information: What's new in SLB 2.3

  4. Paul G.
    Member
    Posted 4 months ago #

    Nice one! Cheers!

Reply

You must log in to post.

About this Plugin

About this Topic