Provides an easy was to add a Lightbox to Gutenberg videos, images, galleries and Media-with-Text-Blocks. Just intall and activate and use it.
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
Following libraries and WP-Plugins were used to create this plugin:
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 seperate 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.
There are no reviews for this plugin.
“Simple Lightbox for WordPress” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。貢獻者
- 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
figure>… 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.