Lightbox-2 for WordPress (discontinued)
Update: Discontinued. See here.
Get the latest version here (last updated: 2010/02/10). See it in action below.
Lightbox 2 allows you to present images in a slick window, while darkening the rest of the page. It makes your site look professional, and adds very little to page load times. It does not require any browser plugins to work, and works on just about every web browser out there! When a browser doesn’t support javascript, the code fails gracefully.
The brilliant Lightbox 2 javascript/css was written by Lokesh Dhakar. I simply made it into a WordPress plugin and added new functionality.
Installation:
Put the lightbox-2 folder in your WordPress plugins folder, then activate it in WordPress. Implementing lightbox on your site is easy: create a link to an image. That’s it!
The end result can be seen by clicking on a thumbnail image.
Features:
- Auto-lightboxing of links to images. This can be disabled on the admin options page.
- Auto-resizing of large images to fit smaller screens. This can be enabled on the admin options page.
- Grabs the title from the img title or the alt if there is no anchor title.
- Faster, cleaner implementations of javascripts via wp_enqueue_script. This also prevents clobbering of other plugins using prototype and scriptaculous javascripts.
- You can choose the lightbox colours on your WordPress Options page. Black, White and Grey themes included.
- No longer conflicts with any WordPress themes! This means it looks right, every time. Unless you are using a theme called stimuli_lightbox… ;)
- Now hosted on WordPress.org. When an update is released, you’ll see it in your WordPress plugins page!
- This version works when wordpress is installed in non-standard locations, ie: /wordpress/ instead of /, whereas other Lightbox plugins break.
- Uses the arrow keys as well as P and N keys to navigate between images. X and Escape keys close the Lightbox window, as does clicking anywhere outside the image.
- Minor cosmetic changes from the standard scripts by Lokesh.
Of course, this plugin works very well with the popular Slickr Gallery plugin for WordPress.
Version History:
2010/02/10: Resize and various tweaks added.
2008/10/14: Bugfixes.
2008/08/04: Implemented Eric Strathmeyer’s numerous fixes for Safari. Thanks, Eric!
2008/05/23: Grabs the title from the img title or the alt if there is no anchor title.
2008/05/20: Auto-lightbox code from Krembo99 and Tanin added, wp_enqueue_script now used for javascripts.
2007/12/17: Themes implemented.
2007/11/04: Complete overhaul, with lots of improvements.
2007/01/08: Major bugfix that would slow down pages.
2006/06/20: Bugfixes.
2006/06/20: Initial release.
You can post comments here.
Please read the Frequently Asked Questions included with the plugin before posting a comment!







