• Skip to primary navigation
  • Skip to main content
  • Skip to footer

WPJohnny

WordPress Performance Guides and Reviews

  • Start a WordPress site
  • Hosting
  • Themes
  • Plugins
  • Blogging
  • Marketing

WP Featherlight Disabled (WPJ plugin)

WordPress plugins Jun 25, 2020 by Johnny 17 Comments

The most lightweight jQuery lightbox plugin for WordPress images and galleries.

Plugin Description:

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.

To load WordPress images and galleries lightbox:

  • 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)

Support:

  • The plugin is free for your personal/commercial use, but do buy me a beer if you like it. Enjoy! 🙂
  • I’m not responsible for what you do with it. If you have issues, you can ask for support on the WP.org repo.

Download WP Featherlight Disabled:

  • WordPress.org repo
  • GitHub repo

Share this post:

Share on FacebookShare on X (Twitter)Share on LinkedInShare on WhatsAppShare on EmailShare on SMS

Read all my posts on WordPress plugins

About Johnny

Right on the edge of WordPress development! 10+ years of WordPress design, development, hosting, speed optimization, product advisor, marketing, monetization. I do all that.

More WordPress Guides

Best Microphones for Online Streaming or Podcasting

GeneratePress vs Genesis – WordPress Theme Review

10 Important METRICS to track with Google Analytics

How to MANUALLY Clone or Create a Staging Site

Apache vs NGINX Comparison – use either but NOT BOTH!

Are plugin acquisitions bad for WordPress users?

Reader Interactions

17 Comments

  1. Regev

    June 25, 2020 at 8:22 am

    Once upon a time in a land far away
    There was a man named Johnny who was sparring all day
    But to speed up our WordPress sites was his true life mission
    So he started forking and optimizing plugins into the most perfect edition
    Johnny Boy thank you from the bottom of our hearts
    May your TTFB never be as high as your smarts

    thanks for another awesome plugin
    – Your readers

    Reply
    • Johnny

      June 26, 2020 at 1:03 am

      “May your TTFB never be as high as your smarts”….that’s still a lot of room! 🤣🤣

      Reply
  2. Tobias

    June 28, 2020 at 10:20 am

    Hi Johnny,

    I love your blog. Thumbs up! I likes your articles about oxygen and SEO :)…

    Is there an option to enable the lightbox automatically for normal post type pages? Such a feature would be awesome to activate the lightbox on all pages or posts or custom post types.

    Kind regards,
    Tobias

    Reply
    • Johnny

      June 28, 2020 at 5:25 pm

      Ha…for that option, don’t even bother with my plugin. Just install the original one which has it enabled globally. Mine was made for the people who like everything off unless manually turned on.

      Reply
      • Tobias

        July 1, 2020 at 12:23 pm

        You are right. I can disable the script for all pages by myself and enable it only for posts. If a customer want posts with lightbox but without explain them to check the box :).

        Reply
  3. olivier Cotasson

    January 27, 2021 at 7:49 pm

    Hello Johnny,

    Though I came with a different approach :
    I use the (original) featherlight plugin for an optional ACF gallery.
    Since it is optional I only load the CSS and JS files required in my template file when images are found. And disabled the plugin altogether so that he does not load on each and every page.

    Thanks for the heads-up regarding this plugin. Since you’re a stickler about performance, I believe this is the best plugin in that regard.

    Reply
    • Johnny

      January 27, 2021 at 8:09 pm

      Heh heh, that’s clever too! I like that your idea is automated. Thanks for sharing your tactics on this.

      Reply
  4. Jonathan

    February 18, 2022 at 5:32 am

    Hi Johnny,

    Tried your forked version with Oxygen and it’s not working. Would you know why?

    Reply
    • Johnny

      February 20, 2022 at 1:19 am

      Do you have a url?

      Reply
      • Jonathan

        February 21, 2022 at 12:58 pm

        No, working on a local environment…

        Reply
  5. Jonathan Camp

    August 2, 2022 at 3:57 am

    How do I enable the filter to show non-compressed AND non-combined JS and CSS files please…?

    Reply
  6. Paul Bystrzan

    September 21, 2024 at 6:31 am

    I really like it, but as You – I forked it to have one thing that Your plugin don’t have – get rid of jQuery. The script already support vanilla JS, but for some reasons your plugin even in 2024 needs a jQuery.

    For Block Themes it’s better to have vanilla setup – even if it’s 5-10 lines of code more.

    Best regards,
    Paul Bystrzan

    Reply
    • Johnny

      September 23, 2024 at 8:37 pm

      Thank you for your contribution!

      Reply
  7. sciencefictionbookclub.org

    December 17, 2024 at 6:35 am

    Hi Johnny,
    great plug-in, many thanks to you and zerOneIT for it.

    At the moment it doesn’t support svg files, would you be interested in a small pull request to add that in? I’ve hacked my own local version and it seems to work well.

    Cheers!

    Reply
    • Johnny

      December 19, 2024 at 4:58 pm

      Please do! Do you have the GitHub link?

      Reply
      • sciencefictionbookclub.org

        December 20, 2024 at 10:21 am

        Yeah I already had the address 😀 and checked if you’d already added .svg files prior to posting my message. Only a few lines needed to be added and it seems to work ok, although some images don’t trigger the lightbox properly, my test page is here.

        https://www.sciencefictionbookclub.org/about/

        If this ☝️ looks to work as you expected I’ll drop a PR tomorrow.

        UPDATE: svg files that use viewbox attribute rather than explicit height and width attributes, do not trigger the light box properly. In short svg images need height and width to be defined.

        Reply
        • Johnny

          January 31, 2025 at 5:20 am

          Ok thank you, keep me posted and I’ll happily add in your contributions. Thank you!

          Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Footer

More links

  • Gadget reviews
  • Try my free WPJ plugins
  • Join the WPJ FB Group
  • WPJ YouTube & newsletter
  • Become a WPJ Affiliate

Popular Reviews

  • Best WordPress Hosting
  • Best WordPress Themes
  • Best WordPress Plugins
  • Best WordPress Cache Plugins

Services

  • Speed optimization
  • Speed optimization courses
  • WordPress hosting
  • Hire me or other experts
  • Client login

About Johnny

10+ years of WordPress design, development, hosting, speed optimization, marketing.
Contact me.

newsletter block

Copyright 2025 | WordPress guides by Johnny Nguyen

Click to Copy