Simple Lightbox for WordPress

plugin banner

Provides an easy was to add a Lightbox to Gutenberg videos, images, galleries and Media-with-Text-Blocks.…

Author:Martin von Berg (profile at wordpress.org)
WordPress version required:5.9
WordPress version tested:6.5.2
Plugin version:2.1.1
Added to WordPress repository:26-04-2022
Last updated:21-04-2024
Rating, %:96
Rated by:8
Plugin URI:https://github.com/MartinvonBerg/simple-light...
Total downloads:3 513
Active installs:100+
plugin download
Click to start download

Provides an easy was to add a Lightbox to Images in Gutenberg image, gallery and Media-with-Text-Blocks. Additionally to Youtube and HTML5 Videos but no other videos. Other video types like VideoPress, Vimeo etc. are currently NOT supported.
The Javascript library fslightbox.js is used for that. You even may use the paid version of fslightbox.js.
Plugin settings are provided by a JSON-file that may be easily changed and backed-up manually (automatically after V2.0.0).

NEW: Added support for the complete HTML-code to the post, page etc. inbetween body tags and not only the content. This is an Opt-in. See example settings file in ./settings/plugin-settings-body.json.

The support for HTML5-Videos and Youtube-Videos will add a small red button on the top left of the embedded Youtube-Video which opens the lightbox with that video.
YT-Videos could be disabled by deleting the line "wp-block-embed-youtube" in the file plugin-settings.json. If you do so please delete the comma at the end of the line before, too!
See live example here: https://www.berg-reise-foto.de/software-wordpress-lightroom-plugins/wordpress-plugins-fotos-und-karten/

The support for Youtube-Videos is working with the given functionality and extended to stop running videos onOpen and for the paid version to stop running videos on slideChange.

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

Screenshots
FAQ
ChangeLog