Simple Lightbox for WordPress


Provides an easy was to add a Lightbox to Gutenberg videos, images, galleries and Media-with-Text-Blocks. Just install and activate and use it.
The Javascript-library fslightbox.js is used for that. You even may use the paid version of fslightbox.js.
Available Settings are provided by a JSON-file that may be easily changed and backed-up.

Just create gallery by using “gallery” block and use lightbox gallery effect powered by fslightbox.js

Plugin uses

Following libraries and WP-Plugins were used to create this plugin:

  1. fslightbox.js
  2. HTML5DOMDocument by ivopetkov
  3. Lightbox Gallery by Kodefix



How does the plugin work?

Plugin is filtering the content of posts and pages and appends lightbox effect for video, image, gallery and wp-text blocks. It also works for external images or videos that are not on your site.

How to change the plugin settings?

The settings are written in a separate file ‘plugin-settings.json’ in the main plugin folder.
Change here the type of posts, pages which shall include the lightbox. Additionally change whether existing links to Media-Files should be overwritten and which CSS-Classes should be used for the fslightbox.
In the JSON file, you can select which link may already be present on the image (hrefTypes : Empty, Media). In addition, it can be set for which pages or posts the lightbox should be activated (postTypes). The selection of the actual media type is done with the CSS class that is used for the image or video (cssClassesToSearch). With excludeIDs you can set which posts / pages should not be equipped with a lightbox. Reasonable basic settings have been chosen, so there should be no reason to change them at the beginning.

Is the paid version of fslightbox.js supported?

Yes, you may buy the fslightbox.js an add the file fslightbox.js to the folder ./folder-where-the-plugin-is-installed/js/fslightbox-paid. That’s it.

Does plugin has any requirements?

No. You can use this plugin with pure WordPress with Gutenberg editor enabled.

Is the lightbox responsive?

Yes. Lightbox is fully responsive – it scales to every device.

Does the plugin use jQuery?

No. Plugin just uses fslightbox.js. Free or paid version optionally.


नोव्हेंबर 18, 2022
Title says it all. Installed it, activated it, got exactly what I needed, which was for images in my gallery block to be clickable and open in a lightbox. You can click forward and backward through the images in your gallery, and you can view the images in full screen mode. If you're looking for fancy schmancy, this ain't it. If you want simple, lightweight, and easy, this IS it.
Read all 1 review

Contributors & Developers

“Simple Lightbox for WordPress” is open source software. The following people have contributed to this plugin.




  • Test with WP 6.1. No changes.


  • Test with WP 6.0. No changes.


  • Added a Setting to exclude certain IDs (post or page or whatever is set)
  • Included the Preview (‘poster’) of videos in the thumbnails (only paid version will see thumbnails)
  • Included a logic for old Gutenberg images with div-tag figure-tag img-tag… structure where the class is defined in the div.
  • Bugfixes: Corrected the generated html for Media-Text and for images with a link in their caption


  • First Version based on Lightbox Gallery by Kodefix.