WP Featherlight Disabled
WPJohnny, zerOneIT By WPJohnny, zerOneIT

January 12, 2024

WP Featherlight Disabled Plugin

The most lightweight WordPress lightbox plugin...and the featherlight CSS/JS (only 7kb) is automatically disabled unless you manually enable within ea …

This minimal WordPress lightbox plugin adds high performance, responsive jQuery lightbox functionality to your images. When standard WordPress images/galleries are clicked, the background fades out into black as images display in lightbox popup. Galleries can be navigated with on-screen arrows, touchscreen swipes, or pressing arrows keys.

In order for WordPress images and galleries to be lightboxed:
– You must select the “Media File” option when choosing where thumbnails should link. You can also select the “Custom Link” option if it links directly to an image file. This should work for any image file, even if it’s hosted on another website.
– Enable on each post by checking “Enable lightbox” on the WP Featherlight settings.
– You can also lightbox videos, iframes, and ajax content by adding data attributes to your content. For more details on custom content loading, check out the featherlight documentation.

My plugin is simply a forked version of the original WP Featherlight plugin. Only difference is the original loads the featherlight CSS/JS on every page whereas mine only loads when you manually enable. Big thanks to Yin and Walter for contributing.

Features:

  • Ultra-lightweight – even more lightweight than the original WP Featherlight since the lightbox CSS/JS is not loaded automatically.
  • Manual activation – to enable lightbox functionality, simply click the checkbox in your post settings.
  • Retains WP Featherlight features – has all the same features and filters as the original WP Featherlight plugin (up to version 1.3.3)
  • Supports WEBP image format.

Installation

  1. Upload the folder wp-featherlight-disabled to the `/wp-content/plugins/` directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

Screenshots

  1. A view of the (clicked) image displaying in jQuery lightbox.

    A view of the (clicked) image displaying in jQuery lightbox.

  2. Manual checkbox on post setting (unchecked by default).

    Manual checkbox on post setting (unchecked by default).

  3. Add original image media link into image element.

    Add original image media link into image element.

  4. Group multiple images as a gallery by adding "gallery" class into wrapper element.

    Group multiple images as a gallery by adding "gallery" class into wrapper element.

FAQ

Does this plugin work with the newest WP version and also older versions?

Yes, this plugin works perfect with the latest version of WordPress! It also works with older versions as well but you should always run the latest WordPress and PHP version for best security and performance. This plugin is used in my critical sites so you can be assured it works perfect.

Will this plugin slow down my site?

No. It’s the most lightweight lightbox plugin possible. It does only the essential function and nothing more. No heavy PHP processing or database queries. I’m an absolute speed fanatic.

Do you plan to add more features?

Probably not. This was intended as a free community plugin and to be as lightweight as possible. You’re welcome to fork it and make your own. Or if you need a more full-featured image gallery, I love Jordy’s [Meow Gallery] plugin(https://wordpress.org/plugins/meow-gallery/). That WP Featherlight and Meow Gallery are the 2 most lightweight and developer-grade image/gallery plugins IMO. I wouldn’t use anything else.

What if I have a display problem?

Display problems can be related to your theme. You can open a support request or see more information on the official Featherlight script GitHub page.

What filters are available?

Plugin has no GUI options. Some handy filters are available to modify default behavior. All images using default WordPress captions will also include a caption when the image is lightboxed. To disable this behavior, filter wp_featherlight_captions to false.

Changelog

1.0.3

Plugin was tested in latest WP 6.4.2 and description was updated. More screenshots were added to help customers with the images configuration.

1.0.2

The official WP Featherlight plugin uses same meta value name for each post as our plugin. To avoid the same meta parameter name usage, we decided another meta name “zeroneit_featherlight_disable”.

1.0.1

.webp format is supported.

1.0

Starting fork off of the official WP Featherlight version 1.3.3. (Only thing changed was the default load behavior, and checkbox wording in post setting.) For older changes, see the official WP Featherlight changelog on GitHub

Details

  • Version: 1.0.3
  • Active installations: 1,000
  • WordPress Version: 4.0
  • Tested up to: 6.4.5

Ratings


5 Stars
4 Stars
3 Stars
2 Stars
1 Stars