
A drop-in replacement for Lightbox 2 and similar plugins, shedding the bulk of Prototype and Scriptaculous. Improved for mobile devices.
LightPress Lightbox is a popular, very lightweight lightbox plugin for WordPress. It is active 40,000 websites. After activation, settings will appear under ‘Lightbox’ on your website’s main admin menu, and images and galleries will open in a nice lightbox.
To make images open in the lightbox, you need to set images to “Link To:” media file. For image blocks, this setting is on the toolbar at the top of the block. For galleries, this setting is on the sidebar by other block options.
LIGHTBOX DEMOS
Free Lightbox Demo
Pro Lightbox Demo – Light Theme
Pro Lightbox Demo – Dark Theme
FREE LIGHTBOX FEATURES
– Automatic detection of images and galleries
– Customize colors of lightbox and navigation
– Classic and modern navigation styles
– Option to show info bar
– Option to show title or alt text
– Option to show download button
– Slideshow options
– Keyboard navigation
– And more!
Links:
-> Demos
-> Docs
-> Free Support
PRO LIGHTBOX FEATURES
LightPress Pro is a premium extension for this lightbox plugin that offers:
– Priority support via email directly from devs
– Powerful, Modern Pro Lighbox
– Beautiful, modern full-browser and full-screen ligthbox
– Dozens of customizations options
– Thumbnails within the lightbox
– Toolbar with controls for thumbnails, zoom, slideshow, and more
– Open videos (Youtube, Vimeo, self-hosted)
– Opens PDF files
– Opens content from external web pages
– Create easy modals and popup boxes
– Open image maps
– Flawless on mobile devices
– Hyper fast performance
-> VIEW PRO LIGHTBOX DEMOS
-> GET PRO SUPPORT
Background and Thanks
Special thanks to Ulf Benjaminsson, who created the original WP JQuery Lightbox plugin and maintained it for many years.
Additional Info
Copyright (C) 2010-2023 Ulf Benjaminsson.
Copyright (C) 2023-Present LightPress LLC.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Screenshots

Default frontend appearance.
FAQ
Trouble shooting:
If you have problems with WP jQuery Lightbox, please make sure you try these steps before asking for help. If you ask for help and I find any of these steps would fix the problem, I will just link you back here to do the work yourself.
- Make sure your site is not throwing any javascript errors. Use your browsers javascript console to find out.
If you’re running a custom theme:
-
Make sure you have wp_head(); just before the closing </head> tag of your theme, or you will break many plugins, which generally use this hook to reference JavaScript files.
-
For the same reason, always have wp_footer(); just before the closing </body> tag of your theme.
-
Many JavaScript optimizers, combiners, minifiers, etc. conflict with wp_localize_script, used to configure this plugin and many others.
-
If you have problems with jQuery Lightbox; first disable all JavaScript-optimizing plugins. (Optimize Scripts, W3 Total Cache, WP Minify etc)
-
If you develop JavaScript optimizers for WordPress, please play nice with the default API…
-
More info about this issue
Lastly:
-
Disable all other plugins, one at a time. Try the lightbox between each.
-
Revert to the default theme. Did it help? Fix your theme.
-
Search the forums for similar symptoms.
Still have problems? Post a link and describe what issue you’re having, and tell us what of these steps you’ve already tried.
Can the lightbox display the image description instead of the title?
WP jQuery Lightbox grabs texts from three different HTML nodes;
title-attribute of link-to-image
img tag’s title attribute (if 1 is empty)
img tag’s alt attribute (if 1 and 2 is empty)
- HTML content of
.gallery-caption or .wp-caption-text (in that order)
Look at how the default TwentyTwelve theme uses these in its galleries and set up your theme so it outputs what you need in these places.
I can see elements of my site through the overlay
It’s a problem of z-index. Check the z-index property for the problematic elements, and force them to be less than 100. (Thanks dway!)
How do I add images to a post?
Inserting Images into Posts and Pages
How do I create a thumbnail gallery?
Upload images to a post (see previous question) and use WordPress’ built-in gallery shortcode:
Note the link="file" – this is crucial! By default the gallery will link your humbnails to a page displaying your image. With link="file" the thumbnails links
directly to the image files – allowing Lightbox to function.
Must fade-in and animation of all *box-scripts be so slow?
WP-jQuery Lightbox lets you configure the animation duration and disable image resizing from the admin panel. Set duration to 0 to disable animations entirely.
For developers:
- Always have
wp_footer(); just before the closing </body> tag of your theme, or you will break many plugins, which generally use this hook to reference JavaScript files.
- Apply lightbox to any content by running
jqlb_apply_lightbox($your_content, "any ID"); It returns a string with all image links lightboxed, grouped by "any id".
- Many JavaScript optimizers, combiners, minifiers, etc. conflict with
wp_localize_script, used to configure this plugin and many others.
- If you have problems with jQuery Lightbox; first disable all JavaScript-optimizing plugins. (Optimize Scripts, W3 Total Cache, WP Minify etc)
- If you develop JavaScript optimizers for WordPress, please play nice with the default API…
- More info about this issue
Can I help you in any way?
Indeed you can!
Translations and help with implementing them would be nice.
ChangeLog