Title: Simple lightGallery
Author: Savvas
Published: <strong>2021 年 10 月 4 日</strong>
Last modified: 2025 年 4 月 18 日

---

搜索插件

![](https://ps.w.org/simple-lightgallery/assets/icon.svg?rev=2838721)

# Simple lightGallery

 作者：[Savvas](https://profiles.wordpress.org/savvasha/)

[下载](https://downloads.wordpress.org/plugin/simple-lightgallery.1.7.2.zip)

 * [详情](https://cn.wordpress.org/plugins/simple-lightgallery/#description)
 * [评价](https://cn.wordpress.org/plugins/simple-lightgallery/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/simple-lightgallery/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/simple-lightgallery/#developers)

 [支持](https://wordpress.org/support/plugin/simple-lightgallery/)

## 描述

An easy way to integrate either v1 or v2 of lightGallery JavaScript to WordPress.
lightGallery is a lightweight, modular, JavaScript library for creating beautiful
image & video galleries for the web and the mobile

#### Features

In **Settings > Simple lightGallery** you can find several options to control in
which parts of your site the lightGallery will be loaded.

Some of lightGallery core features ([taken from lightGallery officially site](https://www.lightgalleryjs.com/docs/getting-started/))

 * Fully responsive.
 * Modular architecture with built in plugins.
 * Highly optimized for touch devices.
 * Mouse drag supports for desktops.
 * Double-click/Double-tap to see actual size of the image.
 * Animated thumbnails.
 * Social sharing.
 * And many more.

#### Usage

 1. Select in which post_types and taxonomies you want the lightGallery to be loaded.
 2. Make sure you are using the correct [markup](https://www.lightgalleryjs.com/docs/getting-started/#the-markup)
    and the appropriate [initialization](https://www.lightgalleryjs.com/docs/getting-started/#initialize-lightgallery)
    for your galleries.
 3. If you want to use lightGallery with WP native `[gallery]` shortcode make sure 
    to use it with the option `link="file"`.

 * For more usage tips, go to [lightGallery officially site](https://www.lightgalleryjs.com/)

## 屏幕截图

 * [[
 * lightGallery Customization Options using v1 of the script
 * [[
 * lightGallery Customization Options using v2 of the script

## 安装

 1. Install and activate Simple lightGallery plugin
 2. Either use your own markup and code to initialize it on the frontend or enable 
    the support for the WP `[gallery]` shortcode.

#### Credits

 * [Chosen](https://github.com/jjj/chosen/)
 * [lightGallery](https://www.lightgalleryjs.com/)

## 评价

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

### 󠀁[Gorgeous, touch friendly, and well supported!](https://wordpress.org/support/topic/gorgeous-touch-friendly-and-well-supported/)󠁿

 [Josh Journey](https://profiles.wordpress.org/ljosh/) 2024 年 8 月 19 日

I’ve experimented with dozens of galleries, this is certainly one of the best in
WordPress. Very light weight, loads fast, displays photos how I’d like, works with
mobile/touch screen monitor, has URL hash for linking, displays nice thumbnails,
navigates very well, and friendly tech support. Thank you for developing this and
swiftly addressing things. 🙂

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

### 󠀁[fantastic implementation of LightGalleryJS in WordPress](https://wordpress.org/support/topic/fantastic-implementation-of-lightgalleryjs-in-wordpress/)󠁿

 [James Revillini](https://profiles.wordpress.org/jrevillini/) 2024 年 8 月 17 日

This plugin is simple, lightweight, and has great support! It worked exactly as 
described and now my galleries are beautiful and accessible!

 [ 阅读所有3条评价 ](https://wordpress.org/support/plugin/simple-lightgallery/reviews/)

## 贡献者及开发者

「Simple lightGallery」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Savvas ](https://profiles.wordpress.org/savvasha/)

[帮助将「Simple lightGallery」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/simple-lightgallery)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.7.2

 * Fix: Remove jQuery dependency from v2 code

#### 1.7.0

 * Update lightGallery to version 2.7.2

#### 1.6.1

 * Fix: Hash plugin is not working on multiple galleries.
 * Fix: Image captions are not shown at slideshow.

#### 1.6.0

 * Fix: lightGallery v2 Plugins are not working.

#### 1.5.1

 * Code cleaning…

#### 1.5.0

 * Replace jQuery Chosen library with Select2
 * Add the option to auto-include the needed inline js code (for V1 only!)

#### 1.4.0

 * Update lightGallery to version 2.7.0

#### 1.3.0

 * Update lightGallery to version 2.3.0

#### 1.2.0

 * Add the option to use lightGallery with WP native `[gallery]` shortcode

#### 1.0.1

 * Cosmetic fixes

#### 1.0.0

 * First Release!

## 额外信息

 *  版本 **1.7.2**
 *  最后更新：**1 年前**
 *  活跃安装数量 **80+**
 *  WordPress 版本 ** 5.3 或更高版本 **
 *  已测试的最高版本为 **6.8.5**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/simple-lightgallery/)
 * 标签
 * [gallery](https://cn.wordpress.org/plugins/tags/gallery/)[jquery](https://cn.wordpress.org/plugins/tags/jquery/)
   [lightgallery](https://cn.wordpress.org/plugins/tags/lightgallery/)[photography](https://cn.wordpress.org/plugins/tags/photography/)
   [responsive](https://cn.wordpress.org/plugins/tags/responsive/)
 *  [高级视图](https://cn.wordpress.org/plugins/simple-lightgallery/advanced/)

## 评级

 5 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ Savvas ](https://profiles.wordpress.org/savvasha/)

## 支持

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

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