Lightbox 2.8.0 plugin for Wordpress

Get the latest version here . Click a thumbnail pic to see it in action. Learn more about this plugin.

Boy and his Turtle Japanese scene

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 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, your web site still looks and works fine.

The brilliant Lightbox 2.2 javascript/css was written by Lokesh Dhakar . I simply made it into a Wordpress plugin and added some options. I’ve had help along the way from several others… thank you, your help is much appreciated!

To install: Put the lightbox-2 folder in your Wordpress plugins folder, then activate it in Wordpress.

Implementing Lightbox is automatic . Create a link to an image to see Lightbox-2 work.

Features:

  • Auto-lightboxing of all links to images in your posts. No more manually adding rel= to your links! This can be turned off in Lightbox 2 admin options. Also, no double rel= tags, thanks to Tanin.
  • Grabs the title from the img title or the alt if there is no anchor title.
  • Themes that determine the colours of the lightbox window. You can select from Black, White or Grey.
  • No longer conflicts with any Wordpress themes! This means it looks right, every time. Almost. Unless you are using a theme called stimuli_lightbox… ;)
  • Uses wp_enqueue_script to prevent multiple prototype and scriptaculous libraries from clobbering each other. At least with other plugins that use wp_enqueue_script.
  • 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. The X and Escape keys close the Lightbox window, as does clicking anywhere outside the image.
  • Minor cosmetic changes from the scripts by Lokesh.

YES, I will be adding WP 2.5+ ‘gallery’ lightboxing functionality in the future… not very soon, however! So try this plugin in the meantime!

Please read the Frequently Asked Questions included with the plugin before posting a comment!


About this entry