I got so many questions about the usage of WP Lightbox 2 plugin. First that a lot to all you to make this plugin a best plugin for image overlay effect. Some Features of WP Lightbox 2:

  • Works on all modern browsers.
  • Group related images in post and navigate through them with ease.
  • Backwards Compatibility.
  • No configuration required.
  • 5 Inbuilt theme.
  • Lightbox display of Gallery.

Apart from the above features we added some more like – Image Map, Shrink large images to fit smaller screens, Enable lightbox in comments (disables the nofollow attribute!) and many more which makes this plugin unique and most popular.

How to Use:

  • You can use WordPress image galleries and have them grouped and auto-lightboxed:
  • You can also add a rel="lightbox" attribute to any link tag to activate the lightbox. For example:
  • <a href=”images/image-1.jpg” rel=”lightbox” title=”my caption”>image #1</a>
  • Optional: Use the title attribute if you want to show a caption.
  • If you have a set of related images that you would like to group, simply include a group name in the rel attribute. For example:
  • <a href=”images/image-1.jpg” rel=”lightbox[roadtrip]”>image #1</a> <a href=”images/image-2.jpg” rel=”lightbox[roadtrip]”>image #2</a> <a href=”images/image-3.jpg” rel=”lightbox[roadtrip]”>image #3</a>
  • No limits to the number of image sets per page or how many images are allowed in each set. Go nuts!
  • To disable lightboxing of an image link, just set any other rel-attribute: rel="nobox"

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 experience problems with jQuery Lightbox, please 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…

Latest updates and download plugin here.

View live demo with sample code here


GNU General Public License, v2 (or newer).

One of the great lighbox plugin.

More than 520,177 downloads.

Daily 1,000+ downloads. ActiveSupports

Live Demos, Support and Usage: