Lightbox-2 for WordPress (discontinued)

Update: Discontinued. See here.

Get the latest version here (last updated: 2010/02/10). See it in action below.

stormy skystonesAnaconda

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.


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.

Green glass towersrandom houseglass


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!


Rupert Morris (email) is a 3D graphics instructor and professional new media artist from the misty climes of the West Coast of Canada. He loves teaching, partly because it allows him to stay sharp and work on his own projects, as well as share his passion for making things with keen young students and future industry luminaries.

Rupert Morris