[WordPress] 外掛分享: Simple Lightbox for WordPress

首頁外掛目錄 › Simple Lightbox for WordPress
WordPress 外掛 Simple Lightbox for WordPress 的封面圖片
400+
安裝啟用
★★★★
4.7/5 分(10 則評價)
98 天前
最後更新
問題解決
WordPress 5.9+ PHP 8.0+ v3.2.0 上架:2022-04-25

內容簡介

提供一種簡單方式,在 Gutenberg 中新增 Lightbox ,支援影片、圖片、畫廊和 Media-with-Text-Blocks。只需安裝並啟用即可使用。
為此使用 Javascript 函式庫 fslightbox.js。您可以使用付費版的 fslightbox.js。
可以使用 JSON 檔案提供的可用設置,輕鬆更改和備份。

只需使用 “gallery” 塊創建畫廊即可使用由 fslightbox.js 提供的燈箱畫廊效果

插件使用

創建此插件使用了以下庫和 WP-插件:

fslightbox.js
HTML5DOMDocument by ivopetkov
Lightbox Gallery by Kodefix

外掛標籤

開發者團隊

⬇ 下載最新版 (v3.2.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Simple Lightbox for WordPress」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

** !!! Upgrade only if your server uses PHP 8.0++. Do NOT upgrade if it still uses PHP 7.4. !!! **
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. in-between 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:

fslightbox.js
HTML5DOMDocument by ivopetkov
Lightbox Gallery by Kodefix

延伸相關外掛

文章
Filter
Apply Filters
Mastodon