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

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

內容簡介

Simple Lightbox for WordPress 是一款簡易的外掛,能為 Gutenberg 編輯器中的圖片、畫廊及媒體區塊添加 Lightbox 功能,並支援 YouTube 和 HTML5 影片,提升網站的視覺效果和用戶體驗。

【主要功能】
• 支援 Gutenberg 圖片及畫廊的 Lightbox 效果
• 可嵌入 YouTube 和 HTML5 影片
• 使用 fslightbox.js 提供流暢的視覺效果
• 設定檔可透過 JSON 檔案輕鬆修改
• 新增支援完整 HTML 代碼的功能

外掛標籤

開發者團隊

⬇ 下載最新版 (v3.5.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
Mastodon