Title: Gutenberg Gallery Blocks Lightbox
Author: Ben Dunkle
Published: <strong>2021 年 1 月 8 日</strong>
Last modified: 2025 年 5 月 22 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/gg-lightbox.svg)

# Gutenberg Gallery Blocks Lightbox

 作者：[Ben Dunkle](https://profiles.wordpress.org/empireoflight/)

[下载](https://downloads.wordpress.org/plugin/gg-lightbox.1.5.zip)

 * [详情](https://cn.wordpress.org/plugins/gg-lightbox/#description)
 * [评价](https://cn.wordpress.org/plugins/gg-lightbox/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/gg-lightbox/#developers)

 [支持](https://wordpress.org/support/plugin/gg-lightbox/)

## 描述

This plugin transforms the Gutenberg gallery block into a lightbox with previous/
next navigation. It was built to offer those who wish to present a series of images
in lightbox/slider format with a simple, lightweight solution.

#### Installation

 * Install the plugin through the Install Plugins interface or by uploading the `
   ggbl-lightbox` folder to your `/wp-content/plugins/` directory.
 * Activate the plugin.
 * Make sure you select “Media File” in the Link To dropdown menu for your galleries

#### Why did you make this plugin?

I haven’t found a lightbox that is optimized for Gutenberg galleries. Many generate
their own gallery formats or contain unneccesary options. I wanted to build one 
that was as minimal as possible, while offering a functional and elegant experience.

## 评价

![](https://secure.gravatar.com/avatar/8a1fead20a69070e2dd1465f93b27570c6cd0b10682fd511a80d71bc74a9ec47?
s=60&d=retro&r=g)

### 󠀁[Brilliant!!](https://wordpress.org/support/topic/brilliant-1682/)󠁿

 [sophibee](https://profiles.wordpress.org/sophibee/) 2025 年 11 月 20 日

I can’t believe how easy my image gallery issue was solved. Thanks so much for your
work on creating such a helpful plugin.

![](https://secure.gravatar.com/avatar/690a4b2101415e5e077a6c9e5d4ad130dd631d64a87c54cd3d01b4c0276d03a4?
s=60&d=retro&r=g)

### 󠀁[best plugin](https://wordpress.org/support/topic/best-plugin-1433/)󠁿

 [readysite](https://profiles.wordpress.org/readysite/) 2024 年 11 月 19 日

Great simple plugin

![](https://secure.gravatar.com/avatar/141f7e28fdb0c1512509ed59a4613745797562d5381dafa98a7b3117e3c4cac0?
s=60&d=retro&r=g)

### 󠀁[Nice work](https://wordpress.org/support/topic/nice-work-586/)󠁿

 [JBertrand10](https://profiles.wordpress.org/jbertrand10/) 2024 年 6 月 19 日 1
回复

Exactly what I was looking for, very minimal and just works.

![](https://secure.gravatar.com/avatar/2e20b44649065e4796849d9bb06c3d73f18ffbe56f4f4f855c10df46364eb7a0?
s=60&d=retro&r=g)

### 󠀁[Just works perfectly! Highly Recommended](https://wordpress.org/support/topic/just-works-perfectly-highly-recommended/)󠁿

 [ozzymuppet](https://profiles.wordpress.org/ozzymuppet/) 2023 年 11 月 9 日

Great plugin, allowing me to quickly make a single or multiple images into a lightbox
without having to download some ridiculously huge plugin that wants a monthly subscription
or something nuts. Works well on mobile, and sure it does’nt have “swipe”, but it
has left/right arrows which work perfect. It’s not meant to be bulky and fancy, 
just to provide the basic functionality that should already come with WordPress 
but does’nt. Thank you developer, you’re a great help!

![](https://secure.gravatar.com/avatar/853de55551fc75b81ad6c441e2f3f4ba34977c54704c97a7e54e16626f0db456?
s=60&d=retro&r=g)

### 󠀁[Not mobile friendly](https://wordpress.org/support/topic/not-mobile-friendly-40/)󠁿

 [civilization](https://profiles.wordpress.org/civilization/) 2023 年 1 月 17 日
1 回复

Giving three stars because only half work is done when developing this plugin. On
mobile, arrows get out of center and in general look a bit weird Also it is impossible
to swipe to the next picture. Considering that these days very big part of the users
are using mobile phones, those are critical issues.

![](https://secure.gravatar.com/avatar/3a9273703009beae7de5ca9e04128b6fef8d87731352d405903e9a0c738db3d5?
s=60&d=retro&r=g)

### 󠀁[Hält was es verspricht](https://wordpress.org/support/topic/halt-was-es-verspricht-4/)󠁿

 [1stein](https://profiles.wordpress.org/1stein/) 2023 年 1 月 16 日

Das Plugin macht genau, was der Titel verspricht. Bilder aus der Gutenberg Galerie
öffnen sich in einem modalen Fenster, wie man es erwartet. Tiptop!

 [ 阅读所有11条评价 ](https://wordpress.org/support/plugin/gg-lightbox/reviews/)

## 贡献者及开发者

「Gutenberg Gallery Blocks Lightbox」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Ben Dunkle ](https://profiles.wordpress.org/empireoflight/)

「Gutenberg Gallery Blocks Lightbox」插件已被翻译至 2 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/gg-lightbox/contributors)
为本插件所做的贡献。

[帮助将「Gutenberg Gallery Blocks Lightbox」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/gg-lightbox)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/gg-lightbox/)，查看[SVN仓库](https://plugins.svn.wordpress.org/gg-lightbox/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/gg-lightbox/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/gg-lightbox/)。

## 更新日志

=1.5=
 * Tested for wp 6.8.1. Minor UI updates. Added swipe on mobile

=1.2.4 =
 * Tested for wp 6.6.2. Removed tags, updated plugin uri

=1.2.3 =
 * Tested for wp 6.5

=1.2.2 =
 * Changed lightbox to position:fixed to prevent unwanted scrolling. Props
@Antahai

=1.2.1 =
 * test for wp 6.0. Adds support for left/right arrow key navigation. Adds
support for ESC key to close gallery.

=1.2 =
 * test for wp 5.9. Works with updated wp-blocks-gallery class

=1.1 =
 * Ensure that lightbox is above all other elements on the page

=1.0 =
 * Initial Release.

## 额外信息

 *  版本 **1.5**
 *  最后更新：**1 年前**
 *  活跃安装数量 **1,000+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.6.5**
 *  PHP 版本 ** 5.2.4 或更高版本 **
 *  语言
 * [Dutch (Belgium)](https://nl-be.wordpress.org/plugins/gg-lightbox/) 、 [English (US)](https://wordpress.org/plugins/gg-lightbox/)
   和 [German](https://de.wordpress.org/plugins/gg-lightbox/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/gg-lightbox)
 * 标签
 * [block](https://cn.wordpress.org/plugins/tags/block/)[gallery](https://cn.wordpress.org/plugins/tags/gallery/)
   [lightbox](https://cn.wordpress.org/plugins/tags/lightbox/)
 *  [高级视图](https://cn.wordpress.org/plugins/gg-lightbox/advanced/)

## 评级

 4.8 星（最高 5 星）。

 *  [  10 条 5 星评价     ](https://wordpress.org/support/plugin/gg-lightbox/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/gg-lightbox/reviews/?filter=4)
 *  [  1 条 3 星评价     ](https://wordpress.org/support/plugin/gg-lightbox/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/gg-lightbox/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/gg-lightbox/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/gg-lightbox/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/gg-lightbox/reviews/)

## 贡献者

 *   [ Ben Dunkle ](https://profiles.wordpress.org/empireoflight/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/gg-lightbox/)