Title: fancyBox 3 for WordPress
Author: w3dev
Published: <strong>2017 年 9 月 24 日</strong>
Last modified: 2023 年 11 月 6 日

---

搜索插件

![](https://ps.w.org/w3dev-fancybox/assets/banner-772x250.jpg?rev=1735007)

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

![](https://ps.w.org/w3dev-fancybox/assets/icon-256x256.jpg?rev=1735008)

# fancyBox 3 for WordPress

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

[下载](https://downloads.wordpress.org/plugin/w3dev-fancybox.zip)

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

 [支持](https://wordpress.org/support/plugin/w3dev-fancybox/)

## 描述

Seamlessly integrates the fancyBox 3 script into your WordPress installation: Upload,
activate, and you’re done. Additional configuration is optional.

You can easily customize almost anything you can think about fancyBox lightbox. 
By default, the plugin will use jQuery to apply fancyBox to ANY thumbnails that 
link directly to an image. It will also automatically convert WordPress image galleries
into fancyBox galleries.

For Inline content linking
 – Create a link to any hidden or visible div with an
ID attribate, and the plugin will transform the link and enable it for fancyBox 
usage. – Note: this may cause a conflict if your page or website is using a smooth
scrolling function to jump between page sections!

In upcoming versions, additional functionality for ajax calls and iframe data will
be implemented.

## 安装

 1. Upload the `w3dev-fancybox` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. That’s it: fancyBox will be automatically applied to all your image links and galleries.
 4. If you want to customize the look and feel of fancyBox, go to the Options Page 
    under General Options in the WordPress Admin panel

## 评价

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

### 󠀁[What a disaster (updated)](https://wordpress.org/support/topic/so-far-so-good-536/)󠁿

 [abcdefghijklmnop](https://profiles.wordpress.org/abcdefghijklmnop/) 2020 年 1 
月 26 日 3 回复

Works out of the box upon activation with latest version of WordPress (June 2018).
Edit: Captions don’t work. 1-2 days after installation, my slider stopped working.
I then opened my site in Microsoft Edge to test it. Just before the site loaded,
I saw some Russian words appear and then disappear. Immediately uninstalled and 
everything looks normal right now. Hope this didn’t f*ck my site up. It is the only
plugin installed besides the default Hello Dolly and Akismet. Edit 2: 26 Jan 2020.
This remains the only plugin installed on my site and so far so good. I am sorry
to the developer for the earlier bad review, I honestly thought there was something
wrong with the plugin.

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

### 󠀁[The Best – Only one with Zoom Function!](https://wordpress.org/support/topic/the-best-only-one-with-zoom-function/)󠁿

 [richardjamesw](https://profiles.wordpress.org/richardjamesw/) 2019 年 8 月 27 
日

Seems to be the only Fancybox plugin with an option for click to zoom after lighbox
has popped up. So glad I finally found one that works! Rich

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

### 󠀁[Super plugin](https://wordpress.org/support/topic/super-plugin-486/)󠁿

 [makissm21](https://profiles.wordpress.org/makissm21/) 2018 年 6 月 9 日

Thanks for the job.

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

### 󠀁[Simple Yet Functional](https://wordpress.org/support/topic/simple-yet-functional-3/)󠁿

 [Paul Scollon](https://profiles.wordpress.org/scollonp/) 2018 年 4 月 20 日

Some of these fancybox plugins have nearly too many features, which means more things
to go wrong. This one just does one thing, and does it well. Got me out of a jam
for sure when another similar plugin just decided to start throwing javascript errors
all over the console.

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

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

 [frietsje](https://profiles.wordpress.org/frietsje/) 2018 年 4 月 10 日

Working for a while now with this plugin. Works easy and as you expect. Also fast
support!

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

### 󠀁[Works as a charm, clear code](https://wordpress.org/support/topic/works-as-a-charm-clear-code/)󠁿

 [springm](https://profiles.wordpress.org/springm/) 2018 年 2 月 27 日

This plugin does what it should, and in addition the code is very clear and beautiful,
so I could easily patch in a functionality that I missed

 [ 阅读所有7条评价 ](https://wordpress.org/support/plugin/w3dev-fancybox/reviews/)

## 贡献者及开发者

「fancyBox 3 for WordPress」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「fancyBox 3 for WordPress」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/w3dev-fancybox)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.2.4

 * Compatibility bump

#### 1.2.3

 * Bug fixes
 * Upgraded fancyBox to v.3.3.5
 * fancyBox is now applied to all galleries on a page with separate IDs

#### 1.2.2

 * Bug fix

#### 1.2.1

 * Bug fix

#### 1.2

 * Fixed a bug where text links pointing to images were not being enabled
 * Added support for Inline content

#### 1.1.1

 * Moved fancyBox JS code to the footer

#### 1.1

 * Fixed a lined of code where there was a short opening tag in PHP
 * Updated fancyBox 3 to the latest version, 3.2.10

#### 1.0.1

 * Added functionality to toggle fancyBox functionality for images and and image
   galleries independently
 * Fixed a bug where the custom slide and container classes were not being added

#### 1.0.0

Initial Release

## 额外信息

 *  版本 **1.2.4**
 *  最后更新：**3 年前**
 *  活跃安装数量 **1,000+**
 *  WordPress 版本 ** 3.4 或更高版本 **
 *  已测试的最高版本为 **6.3.8**
 *  语言
 * [English (US)](https://wordpress.org/plugins/w3dev-fancybox/)
 * 标签
 * [fancybox](https://cn.wordpress.org/plugins/tags/fancybox/)[fancybox 3](https://cn.wordpress.org/plugins/tags/fancybox-3/)
   [gallery](https://cn.wordpress.org/plugins/tags/gallery/)[jquery](https://cn.wordpress.org/plugins/tags/jquery/)
   [lightbox](https://cn.wordpress.org/plugins/tags/lightbox/)
 *  [高级视图](https://cn.wordpress.org/plugins/w3dev-fancybox/advanced/)

## 评级

 4.9 星（最高 5 星）。

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

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

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

## 贡献者

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

## 支持

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

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