SLB can be enabled/disabled on different post types, however SLB does not (yet) officially support disabling specific links in post content.
Unofficially, links can currently be disabled by adding data-slb-active=0 to the link(s) you want to disable. Once again this is unsupported and may cease working in a future update.
Note: For future reference, SLB’s official support forum the best place to ask questions, request features, etc. While it is used for bug reporting, it is also used for other types of support.
I have succeeded in removing the lightbox completely for certain images and the solution is so simple, it’s almost silly.
1. Create your post/page.
2. Insert your images.
3. Publish your page.
4. Edit your page, click on the “text” tab to see the code.
5. SLbox will have generated a link to a thumbnail. Delete the <a> tags and everything between them. (Essentially you are deleting the link that SLbox uses to create the lightbox. No link, no lightbox.
6. Save and view your page. That particular image will no longer have a lightbox to activate when you click on it.
Hope this helps.
@chef: I’m glad you found a solution that worked for you! I just wanted to make one little clarification: Links are added to inserted images by WordPress itself, not SLB.
In fact, you can choose to not add a link when inserting an image from the “Add Media” dialog, which may be a simpler option than manually removing the link in the HTML.
See the Attachment Display Settings section on WordPress’ official documentation on inserting Images into Posts and Pages for more information.
This solution is unacceptable for me. I want to disable SLB functionality on specific posts as needed (still want links, just no lightbox)
Hi Frank, see instructions on using SLB’s [slb_exclude] shortcode for excluding content from being activated by SLB.
For controlling activation of entire posts/pages, add your feedback to the existing feature request.
Thanks, Very nice, I was searching for “disable simple lightbox” so I never found this information. Very good solution..
That information should be updated to reflect that normal brackets should be used instead of curly braces.
Hi Frank, glad to hear the shortcode works for your needs. There is a note at the top of the New Shortcodes section of the page regarding the use of curly braces in the examples.
Sorry, skimmed that too fast. You are right.