Simple Lightbox for WordPress

描述

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.
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 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” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Simple Lightbox for WordPress 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.1.1

  • Test with WP 6.0. No changes.

1.1.0

  • 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>

<

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

1.0.0

  • First Version based on Lightbox Gallery by Kodefix.