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

  1. Paul G.
    Posted 2 years ago #


    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?



  2. Paul G.
    Posted 2 years 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.


  3. Archetyped
    Plugin Author

    Posted 2 years 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.
    Posted 2 years ago #

    Nice one! Cheers!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Lightbox
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic