Skip to content
This repository was archived by the owner on Jun 19, 2020. It is now read-only.
 
 

Repository files navigation

WP Featherlight Disabled

Fork of the original lightweight jQuery lightbox for WordPress images and galleries.

Contributors: Johnny Nguyen, zeroneit Requires: WordPress 4.0 Tested up to: WordPress 5.4.1 License: GPL-2.0+

Description

WP Featherlight Disabled is a fork of the original ultra-light WP Featherlight jQuery lightbox plugin. This plugin displays all standard WordPress images and galleries in a simple, minimalistic lightbox popup. Its total weight is only 6-7kb in CSS/JS.

  • The original version loads the plugin CSS/JS globally and can be manually disabled per post via checkbox.
  • Mine is the opposite, plugin CSS/JS is only loaded if manually enabled per post via checkbox.

In order for WordPress images and galleries to be lightboxed, you need to select the "Media File" option when choosing where the thumbnails should link. You can also select the "Custom Link" option if you make sure to link directly to an image file. This should work for any image file even if it's hosted on another website.

media-file

It's also possible to load Videos, iframes, and ajax content using WP Featherlight by adding data attributes to your content. For more details on custom content loading, check out the featherlight documentation.

There are no settings for WP Featherlight Disabled, so you should be able to install it without needing to configure anything.

Here's an example of the plugin being used to load a large (5mb) external image in a standard WordPress post:

Loader in Action

If you find a display problem, it may be related to your theme but can open an issue at the original GitHub to have them look into it. For more information about the Featherlight script itself, check out their GitHub plugin page.

Installation

The best way to install this plugin is to either download a copy from the GitHub. Once available on WordPress.org repository, can search for "WP Featherlight Disabled" from your WordPress admin dashboard.

Developer Notes

While there are no options in the plugin, there are some handy filters to modify the default behavior. As of 0.3.0 all images which use the default WordPress captions will also include a caption when the image is lightboxed. To disable this behavior, filter wp_featherlight_captions to false.

If you have questions about how any part of the plugin works, please don't hesitate to open an issue.

Contributing

Developers can fork off this WPJohnny fork or most current original found on the develop branch. Pull requests, issues, and any feedback are all more than welcome. If you would like to contribute code, please make your pull requests against the develop branch rather than the master.

About

An ultra lightweight WordPress lightbox plugin.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages