Linux 软件免费装
Banner图

Five Number Lightbox

开发者 gvijaikumar99
更新时间 2026年7月30日 00:21
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

gallery lightbox images popup image viewer

下载

1.3.1

详情介绍:

Click an image in a post and it opens in an overlay instead of loading the raw file in a new page. The plugin is about 12KB in total and loads no libraries. No jQuery, no framework, no external requests, no tracking, no settings page to configure before it does anything. On a page with no eligible images, neither the CSS nor the JavaScript is loaded at all. Step-by-step instructions, including how to move over from an older lightbox plugin: Five Number Lightbox - setup and usage It works without editing your posts Most lightbox plugins need your images marked up a particular way. This one handles what is already there: Images in the same post form a set, so you can page through them with the arrow keys or the on-screen arrows. It does not rewrite your HTML Attributes are added to tags that already exist. Nothing is wrapped, moved or re-nested, so the page structure stays exactly as you wrote it. Images inside <picture> elements keep working, links you added yourself are never hijacked, and an image inside a link keeps going where you pointed it. Parsing is done with WordPress's own HTML API rather than regular expressions, so quoting and unusual attribute values are handled correctly. It tries not to get in the way Keyboard and accessibility Mobile Swipe left and right to move between images. Vertical drags are ignored so scrolling does not page the set. Your place on the page is kept when the overlay closes. Neighbouring images are not preloaded when the browser reports that the reader has asked to save data.

安装:

  1. In your admin, go to Plugins > Add New > Upload Plugin and upload the zip, or search for "Five Number Lightbox" under Plugins > Add New.
  2. Activate it.
There is nothing to configure. If you are replacing another lightbox plugin, deactivate that one first so the two do not both react to the same click.

升级注意事项:

1.3.1 First public release.

常见问题:

Do I have to change how I insert images?

No. Insert images the way you already do. If an image has no link, the plugin finds the full-size file for you.

I am moving from an older lightbox plugin. Will my old posts break?

No. Content already containing rel="lightbox[group]" is left untouched and works as it always did, including the grouping.

Why do some images not open in a lightbox?

Four cases are skipped on purpose: images already shown at their full size, images narrower than 400px, images that are not in your media library, and images inside a link you added yourself. In the last case your link is more important than an overlay, so it is left alone.

Can I change the 400px cut-off?

Yes, with the fnlb_min_width filter: add_filter( 'fnlb_min_width', function () { return 250; } );

Can I turn it off on certain pages?

Yes. fnlb_enabled controls whether the CSS and JavaScript load, and fnlb_rewrite_content controls whether image markup is touched: add_filter( 'fnlb_enabled', function ( $on ) { return ! is_front_page(); } );

Does it work with galleries?

Images in a gallery block are handled the same way as any other image in the post, and all images in a post form one set.

Does it send any data anywhere?

No. There are no external requests, no analytics and no phoning home.

更新日志:

1.3.1