Title: Lity &#8211; Responsive Lightboxes
Author: Evan Herman
Published: <strong>2022 年 7 月 9 日</strong>
Last modified: 2022 年 7 月 9 日

---

搜索插件

![](https://ps.w.org/lity-responsive-lightboxes/assets/banner-772x250.png?rev=2753963)

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

![](https://ps.w.org/lity-responsive-lightboxes/assets/icon-256x256.png?rev=2753963)

# Lity – Responsive Lightboxes

 作者：[Evan Herman](https://profiles.wordpress.org/eherman24/)

[下载](https://downloads.wordpress.org/plugin/lity-responsive-lightboxes.1.0.0.zip)

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

 [支持](https://wordpress.org/support/plugin/lity-responsive-lightboxes/)

## 描述

Lity – Responsive Lightboxes is a lightweight, accessible and responsive lightbox
plugin.

After installation, all images on your site will open up in a beautiful lightbox.

With additional granular controls, users can turn on or off lightboxes for specific
images by class, ID or other attribute, or turn them off for specific pages or posts.

 * Lightweight
 * Accessible
 * Responsive
 * Support for Lightbox Captions
 * Translation Ready

### Credits

This software uses the following open source packages:

 * [Lity](https://sorgalla.com/lity/) by [Jan Sorgalla](https://github.com/jsor)
 * [Slimselect](https://github.com/brianvoe/slim-select) by [Brian Voelker](https://github.com/brianvoe)
 * [Tagify](https://github.com/yairEO/tagify) by [Yair Even Or](https://github.com/yairEO)

Props to [Ben Rothman](https://profiles.wordpress.org/brothman01/) for the plugin
idea and testing.

### 1.0.0

 * Initial Release.

## 屏幕截图

 * [[
 * Lity settings page.
 * [[
 * Lightbox open displaying an image.
 * [[
 * Lightbox open displaying an image on mobile.
 * [[
 * Lightbox with image title and caption displaying an image.
 * [[
 * Lightbox with image title and caption displaying an image on mobile.

## 安装

 1. Upload the `lity` folder to your `/wp-content/plugins/` directory or alternatively
    upload the lity.zip file via the plugin page of WordPress by clicking ‘Add New’
    and selecting the zip from your computer.
 2. Activate the Lity – Responsive Lightboxes WordPress plugin through the ‘Plugins’
    menu in WordPress.
 3. Navigate to ‘Settings > Lity – Responsive Lightboxes’ to alter the plugin settings.

## 常见问题

### Will this plugin only work on images I have uploaded to my site?

No, any images on the page can be opened in a lightbox. You can copy images from
Google images and paste them into your content, and they will also open in a lightbox.

### Where are the plugin settings?

The plugins settings are nested inside of the ‘Tools’ menu item from the WordPress
admin dashboard.

### The metadata and cache notice won’t go away. Why?

If the notice at the top of dashboard about fetching your image metadata and caching
won’t go away, head into ‘Tools > Scheduled Actions’. In the list, find the `lity_generate_media`
action that has a `pending` status, hover over it and click on ‘Run’. If all `lity_generate_media`
are all set to ‘Complete’ and the notice is still visible, head back to the Lity
options page and click on ‘Clear Lity Transient’.

### Does Lity – Responsive Lightboxes work with videos or other media types?

At this time no, the plugin will only open up images in a responsive lightbox. Videos
and other media types may come at a later time.

### Does Lity – Responsive Lightboxes work with galleries?

At this time, no. Lity – Responsive Lightboxes only works with single images. Users
are not able to navigate through a gallery without closing the lightbox. Users will
have to close the lightbox and click on the next image they would like to view. 
Gallery support and keyboard navigation may come at a later time.

### I have the option set to use full size images, but it’s not working. Why?

Double check the URL of the image is correct and matches the URL of your current
site. If you migrated your site from another domain you may not have updated the
URLs in the database and/or post content.

### Is there a GitHub repository that I can submit issues or contribute to?

Yes, our GitHub repository can be found at [https://github.com/EvanHerman/lity](https://github.com/EvanHerman/lity).

## 评价

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

### 󠀁[perfect for my needs](https://wordpress.org/support/topic/perfect-for-my-needs-125/)󠁿

 [Ben Rothman](https://profiles.wordpress.org/brothman01/) 2023 年 10 月 19 日

This saved me a lot of time by being exactly what I was looking for! Thank you for
making it work with existing images so I did not have to rebuild my entire site.

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

### 󠀁[Great plugin](https://wordpress.org/support/topic/great-plugin-35553/)󠁿

 [wertygor](https://profiles.wordpress.org/wertygor/) 2022 年 11 月 17 日

Plugin i needed 🙂

 [ 阅读所有2条评价 ](https://wordpress.org/support/plugin/lity-responsive-lightboxes/reviews/)

## 贡献者及开发者

「Lity – Responsive Lightboxes」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Evan Herman ](https://profiles.wordpress.org/eherman24/)

[帮助将「Lity – Responsive Lightboxes」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/lity-responsive-lightboxes)

### 对开发感兴趣吗?

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

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**4 年前**
 *  活跃安装数量 **50+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.0.12**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/lity-responsive-lightboxes/)
 * 标签
 * [captions](https://cn.wordpress.org/plugins/tags/captions/)[lightbox](https://cn.wordpress.org/plugins/tags/lightbox/)
   [responsive](https://cn.wordpress.org/plugins/tags/responsive/)
 *  [高级视图](https://cn.wordpress.org/plugins/lity-responsive-lightboxes/advanced/)

## 评级

 5 星（最高 5 星）。

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

[Your review](https://wordpress.org/support/plugin/lity-responsive-lightboxes/reviews/#new-post)

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

## 贡献者

 *   [ Evan Herman ](https://profiles.wordpress.org/eherman24/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/lity-responsive-lightboxes/)