Lightbox 2 Plugin WordPress Feature Usage and More

Lightbox 2 plugin is used to add the lightbox (overlay) effect to the images in the post and pages. This plugin is developed by team “SAY Masdi” with the help of Author claims that this lightbox 2 plugin is extension of wp-jquery-lightbox

Now Lightbox 2 plugin is the compatible with WordPress 3.9.1 +

Below the feature listed –
This is the first lightbox plugin which support image map.
Works on all modern browsers.
Group related images in post and navigate through them with ease.
Backwards Compatibility.
No configuration required.
Lightbox display of Gallery.
Responsive Lightbox plugin.

WP Lightbox 2 is very lightweight plugin. There is no extra page load overhead on the server. Image loaded very fast.

How to Use Lifgtbox 2 Plugin:

By default the option “Auto-lightbox image links” is enabled, means all the images in your website will have overlay color-box impact.

You can also add a rel=”lightbox” attribute to any link tag to activate the lightbox. For example:

<a title="my caption" href="images/image-1.jpg" rel="lightbox">image #1</a>

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>

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”

You may like to read more aboutHow to Use WP Lightbox 2 WordPress Plugin


Click on image to view full size and colorbox / loghtbox impact.

WP Lightbox 2 - About

WP Lightbox 2 - Developers Options

Click here to check and download latest version of the lightbox 2 plugin.

Share on Facebook

Subscribe to Yepinol via Email


Join 5000+ Other Readers


  1. says

    Good day! A validator W3C show 10 errors in my blog: “” May you correct plugin code?

  2. Sampo Haavisto says

    Hello! Thanks for the great plug-in. I’ve noticed a bug in the JS code however. Iäm running jQuery 1.11.1 from Google CDN and line 46 isn’t evaluating as true like it should. Script fails on line 49 because of a depricated function call.

    It fails on any jQuery version above 1.9.

    This modification works with jQuery version track 1 only.
    if (parseInt($().jquery.split(‘.’)[1], 10) >= 7) {

Leave a Reply

Your email address will not be published. Required fields are marked *