WP Lightbox 2 plugin used to add the lightbox (overlay) effect to the current page images on your WordPress blog. Used to overlay images on the current page. Extension of Lightbox 2 which features ‘auto-lightboxing’ of image links, courtesy of Michael Tysonand and Lightbox2 .
Just install and sit back. This plugin enable image overlay lighbox effect for all the post images in your wordpress plugin. No configuration required. From 2.1, the default view changed to Colorbox due to the license regulation by the plugin directory.
You may like to read : How to Use WP Lightbox 2 WordPress Plugin
License:
GNU General Public License, v2 (or newer):
This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
WP Lightbox 2 Plugin is fully compatible with with latest version of WordPress

You can download the latest version of WP Lightbox 2 or the most popular old version here:
Click here to Download Latest version of the WP Lightbox 2
Click here to Download the WP Lightbox 2.1
Click here to Download the WP Lightbox 2
Click here to view WP Lightbox 2 live demo in action
Feature:
2.25
- Compatible with wordpress 3.4.2 (Fixed PHP 5 bug)
- Fixed Bug Stopped Working with W3 Total Cache
2.1
- Default view changed to Colorbox due to the license regulation by the plugin directory.
- 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.
Installation
To do a new installation of the plugin, please follow these steps
1. Download the zipped plugin file to your local machine.
2. Unzip the file.
3. Upload the `WP-lightbox-2` folder to the `/wp-content/plugins/` directory.
4. Activate the plugin through the ‘Plugins’ menu in WordPress.
5. Optionally, go to the Options page and select a new Lightbox colour scheme. (applicable till version 2.0)
Frequently Asked Questions
Question: Why doesn’t plugin is working for me?
Answers: Check the following reasons:
You have changed the plugin folder’s name to something other than “lightbox-2″.
The problem is with your WordPress theme, mangling image display properties. Use another theme, that doesn’t interfere with posted images.
You have other plugins that conflict with Lightbox
Disable your other plugins and see if that helps. If it does, re-enable each plugin, one at a time to see which one is causing the conflict.
Question: It doesn’t work properly in Browser X (Explorer 6, 7, etc)?
Answer: Yes it does. The problem is with your WordPress theme, mangling image display properties. Use another theme, or change your theme’s Cascading Style Sheets (CSS).
Question: How do I create a thumbnail gallery?
Answer: Upload images to a post (see previous question) and use WordPress’ built-in gallery shortcode:
- WP Lightbox 2 open large image example
Note the link="file" - this is crucial! By default the gallery will link your humbnails to a page displaying your image. With link="file" the thumbnails links directly to the image files – allowing Lightbox to function.
Screen-Shots:


WP Lightbox 2 open large image example
This plugin is based on the Lighbox 2 plugin and this project
Please your question I wll eply in 48 hours.








Hello there,
Any one share with me the script how to work mannualy in wordpress.
Thanks.
It’s an amazing piece of writing for all the online people; they will take advantage from it I am sure.
GREAT PLUGIN!!! finally a lightbox that works!!!
Hi,
Thank you for your plugin, it is very nice and easy to use. I have just one question. After installing it and when I click on an image, it appears bigger, it works but then on the home page, I have a new navigation menu (drop-down menu) that appears under the existing one. Could you tell how to avoid showing this new menu?
Hello, I have a custom registration page. I am using Register Plus Redux, which enables me to have a License Agreement Section. Within that section, there is a hyperlink that says “click here to read license agreement.” This hyperlink is pointed to an image of the agreement (agreement.jpg). I would like this JPG file to open up in lightbox…is this possible? I’ve tried to add the shortcode [rel="lightbox"] and it does not work.
Any help would be great
Hey Pankaj, your Lightbox2 plugin is working like champ.. keep it up good work
Your WP Lightbox2 plugin is awsome. I used it. It’s quite simple, easy and good loking. Well done and thanks !!
Hi, nice theme thanks!
Is it possible to change the site width? I would like to have it more wide.
Peter
Hi,
Not sure if you are still checking this page, but just in case:
I apologize for butting in again, but I still cannot align CENTER the caption. Could you show us how to do that? Why is the caption align left by default and cannot be changed? It looks misaligned…
http://www.qandmmusiccenter.com/recently-sold/
Other than that, great plugin!
Thank you!
Andre
Hi Andre, that’s how the code has been written of “Lightbox 2″ for caption by default left align and that looks good to because on the right side close button is there.
Thanks for the reply, but that’s not helpful for me, sadly. Nor is it practical for my clients, as not all sites are the same and need different setup. The simple option to align the caption should be something to consider for that reason.
Thanks,
Andre
Hi Andre,
I know this is a little late, but I see you still haven’t been able to center-align the captions for your images. I’ve been installing this lightbox on my own website and wanted mine center-aligned as well. Here’s how to do it:
In your WordPress dashboard, click on the Plugins tab. Under WP Lightbox 2, click “Edit”.
On the right, you will see a list of plugin files. You want to click the one called “wp-lightbox-2/styles/lightbox.min.css”.
You want to find the part that reads as follows:
#imageDetails{width:70%;float:left;text-align:left}
This is the code that controls how the caption is displayed. To center the text, simply change it to:
#imageDetails{width:70%;float:left;text-align:center}
That should solve it. Let me know if it works!
Johnny
Hey Johnny,
Wow, that is awesome and very classy on your part to share this…
It’s NEVER too late!
I’ll take a stab at it this week, and let you know how it went.
Regards,
Andre
Andre,
No worries, man. I have been working non-stop for the last three weeks on my site, and I know how frustrating it is when you don’t know how to fix something (especially something so simple). Keep me updated!
Johnny
Hi…
On this site, I have read under “installation” and you write…
5. Optionally, go to the Options page and select a new Lightbox colour scheme.
Where do I find “Lightbox colour scheme” ??? Its not listet in my options panel under WP lightbox 2, and I want to change the box background color from White to Black.
Hi Eva, the option to choose color scheme was applicable till version 2.0 which was using the Lokesh Dhakar Lighbox as base. Because of the licence regulation issue I changed the code entirely and from 2.1 view changed to colorbox which is awesome and very famous among my users.
Hi Pankaj
Thank you for the answer – I stop looking for that option
Keep on the god job.
Is there a way to disable the slide in from top functionality of the modal? How do I keep the top stationary when clicking next or previous?
Thank you for your work – great plugin. Is possible to make preloading of images for faster viewing. Thaks for all.
I would like to add the function of Twitter or Facebook like to the image pop up. How can we do this? The image open’s up and at the bottom u got the twitter or FB like.
That’s very nice idea, let me work on this!
Hi – I’m having a problem where the descriptions are white and are not being displayed. I have tried modifying the css but it does not fix the issue. http://cmaccapital.com/amga/ is the test page.
Hi there
I was wondering if you might be able to offer some help and or advice…I am using your plugin for a few sites and I love it….one site that I just recently started up is for a personal blog, where I am using the WordPress theme Twenty Eleven, yet so far I am not having any luck with getting your plug in to work…in fact, I have even tried other similar lightwell plugins to see if I can get it to work, yet to no avail!
I want to use the Twenty Eleven theme, since it fits well with my blog and would love if WP Lightbox 2 would work with it
(I even opened up a couple posts on the WordPress forums section to see if anyone might have a suggestion or have some insight as to why nothing works in terms of a lightbox effect)
Any clues?
Thank you for your time and consideration
I don’t see that wp-lightbox-2 is properly installed on your website. Check below –
1) May be your are using multiple light box plugin
2) Are you using the latest version of the wordpress
2) Are you using WP Mimify plugin
Good Morning…
I am using 3.5.1 WP, so I have the latest version installed
I just have WP-Lightbox-2 installed and it says activated
Not using WP Mimify, never heard of that before
Noob question here, but if it is listed as activated, why would it now show up as installed? Is there something else that I need to do on my end to get it working?
Hey Patrick, can you please reach me mail on masdi.techblog@gmail.com we will have the troubleshooting session to resolve the WP Lighbox Plugin issues on your site..
Ok! Awesome!
Nice plugin. Any way to use the standard lightbox config parameter like transition etc?
This works great except for problem the plugin create with the responsive select menu plugin (see issue reported here: http://wordpress.org/support/topic/plugin-responsive-select-menu-triggered-by-lightbox). Any idea how to prevent this fro happenning?
Tried to debug the plugin myself but had limited success. Ended up switching to this one: http://wordpress.org/extend/plugins/wp-jquery-lightbox/ which plays nicely with Responsive Select Menu.
This plugin is awesome.. Works exactly how i need it to, but with one slight exception.
When i click on an image it displays fine and resizes great. When i close that image i notice a nav dropdown box has appeared in the middle of my nav bar. When i switch pages it goes but how can i stop this from appearing ?
Thanks for this great plugin.
This is a great plugin – I used it to display some photos here – http://www.yvranch.ca/sales-events/
I have added a link attribute into the title…which works, EXCEPT I can’t get the link to open in different tab (the target=”_blank” doesn’t work), which is what I would rather do so that they person following hte link doesn’t get kicked out of the lightbox gallery.
Hi, thank you for the useful and straight forward plugin!
I have an issue with CENTERING THE CAPTION.
http://www.qandmmusiccenter.net/organs/
I’ve tried everything I could think of, the theme styles, custom CSS, and just can’t seem to be able to center the caption. There could be a padding-left for the images which I can’t find to modify.
HELP!?
Regards,
Andre
thx works great
Great plug in. A few questions.
1) Is there a way to easily disable the animation by deleting a section of the code?
2) How can I remove the title and just get the caption
3) How can I replace the CLOSE X with just text, or atleast replace the image?
Thanks
The aspect ratio is off when I use IE… anyone experiencing the same thing?
Sorry if question is stupid.
How to put two or more picture gallery on same page.?
hello, how do I set the image title? it seems to just give the file name… thanks!
Hi,
is this really the only wp-lightbox plugin which can shrink images to browser window size? works great, but please add localization to the next version, i’m using it on german websites as well! I tried the codepage localization plugin, doesn’t seem to work with your plugin…
greets
alexander
I am using Ajax on my page to load new pages with images. As soon as new content is loaded the lightbox doesn’t work anymore. How can i re-initialize the lightbox so the loaded images get the lightbox functionality?
I guess i have to call the initialize() function somehow but couldn’t get it to work, maybe you can help?
Hello,
is it possible to have the title of the image with the WordPress gallery?
thank you
I will try to incorporate this requirement in Lightbox 2 next releae.
Great plugin!
Just one problem. I have installed your plugin and lightbox 2, so I can print the opened image.
I have installed on this page -
http://picback.com/1-test-page
When the pink logo opens, it then needs to be clicked to turn one screen to another. Is the a way of forcing the print version to open straight away?
I’m currently using your Lightbox plugin and have discovered it has a conflict with my theme. I have disabled it and used another lightbox version and the problem doesn’t occur so I do know it is something with your version. So here is what I’ve noticed. Please visit http://www.goodneighborcommunityservices.com/dev/disability-supports/residential/?album=1&gallery=1 and click on an image to launch the Lightbox. Now when you leave the lightbox by clicking out or hitting Esc scroll up so you can see the navigation bar and you will notice that the mobile version of the menu with the Menu dropdown is visable. If you refresh it will go away but something with exiting the lightbox is causing it to display. Any thoughts would be appreciated otherwise I will just need to use some other version.
Thanks
hi, i’m using the plugin and just updated it. i wanted to change the color of ligthbox effect to gray. the version before this update has dropdown menu wherein you can choose color but i don’t seem to find it when i updated it. nice plugin.
Thanks Dexter for using plugin.
Earlier I was using Lokesh Dhakar’s Lightbox, there was some licence conflict with JNU 2.0 licence. In the latest plugin there are lots of other new features like Image Map, Auto-lightbox image links, Shrink large images to fit smaller screens etc are there.
I am working on the color change .. will get back soon.
Ditto that comment. Thanks for your work.
This would really be helpful to me too. I have a client that wants a website with a dark background and white text. When I do this all the text in the lightbox are not visible. Thank you for such an easy technology solution!!
I like the lightbox plug-in and installed it on several wordpress sites that I manage. My problem seems to be that it is not compatible with the Pinterest plug-in that I use. Any suggestions? I tried it in Chrome and IE8 and it doesn’t work.
I deactivated the Pinterest Plug-in – Display a Pinterest “Pin It” button on top of your images, only when people move their mouse over the image. Version 1.0 | By SuccessNexus.com
NOW my lightbox works. Is there any way that you could adapt your plug-in to allow it to work with the Pinterest plug-in. Not everyone has added the PinIt button to their browser bar to enable pinning.
I would really love it if they could work together.
Hello, I installed Lightbox2 in one of my websites (www.evilplanetstudios.com) and I have an animated flash a header, it reloads every time lightbox2 opens an image. Is there a way of avoiding this? How long will it take before there is a fix for this problem?
Thank you very much. Have a great day.
I am using Opera+windows 7 by the way.
Hi
thanks for this great plugin – works really well
Just thought I should report a strange issue: when accessing the settings, making changes and then saving them – the page loads blank. Using the back button, or reloading the page, then shows the settings page again with the latest settings saved successfully.
So nothing wrong with the pugin functions, or changing settings – but an odd error on saving.
tech info: WordPress.Version 3.4., plugin Version 2.21, using Chrome (latest) on Mac OS10.8
please ignore my error report – I’ve just discovered that I might have an issue with my functions file.
Hello Mr. Pankaj,
starting off, Kudos to you for developing such a handy and efficient plugin for overlay image display. I have a personal photo blog and very frankly, your light box plugin is a savior. I am, however suffering from an issue… whenever an image thumbnail is clicked , everything works fine. Lightbox opens up and the images are displayed fine. But after closing the lightbox gallery , the initial page (containing text, thumbnails etc) is somehow darkened and faded as if its in background of some plugin still running. Maybe you’ll have a better idea on seeing it …
Kindly visit http://www.kinshukkashyap.in/?p=266 to have a better idea. i’d be highly obliged to have this issue sorted out. thanking you in advance,
with Regards,
Kinshuk Kashyap
How can i change the word “Download” to something eles?
how to embedded social share buttons in light box….?
Never mind
I cant get the lightbox to work on my site
tncnewscentral.com
Hello dear Pankaj
1. can you try to tell me way its not work in pages
as you can see here in my blog
http://www.temoni.org/?page_id=4527
but in the post its work as well
2. i canot see my hebrew language of the plugin in the blog- way?
thanks
* i whant to Donate you, give me a link please
I will work on your request. Donation URL: http://onlinewebapplication.com/onlinewebapplication-com-donation/
Hi, thanks for this nice plugin!
I can’t seem to figure out how to change the overlay opacity for my site karinmariajonsson.se
Can you help me?
Hello –
I love your WP_Lightbox_2 – but I am having an issue. For some reason, after I installed and configured it, while all my existing images come up in Lightbox, any new ones I load come up as “attachments” and WP creates a new page for them. Do you have any idea why this might be?
Great plugin, i am having a small problem… i have a nextgen gallery page, i click on the thumbnail and it opens up nicely using your plugin, but when i close the image, the default ugly nextgen view of the image is in behind. then i have to click close on that image as well?
Any ideas how to disable the nextgen popup?
Sounds like you don’t have the latest version installed. If yes then be sure that < ?php wp_head(); ?> is in the header.php
Request you to send me the page link. Actual issue comes up when using the RANDOM or RECENT short codes
Check http://wordpress.org/extend/plugins/nextgen-gallery/faq/ for more details
Hello, great plugin, but having problems when using instead of (using an image map). How can resolve this problem? Thanks, Angelo
Ops, sorry. having problems when using “area” instead of “a” (using an image map). Can you help me?
Please follow demo here, there is a example with sample code how to implement Lightbox 2 plugin with image map.
WP Lighbox 2 plugin also work with Image map.
http://onlinewebapplication.com/wp-lightbox-2-demo/
more example and review -
http://aspnethive.info/wp-lightbox-2-review/
2.1 stopped working, reverted back to 2.0
Which version of the WordPress you are using, can you please tell me. I check with 2 to 3 sites WP Lightbox 2.1 is working fine.
3.4
Hi
I just upgraded to the 2.1 and after that the lightbox did not worked anymore…?
Any tip
Hi,
Can you please give some more details, like
Case A: After upgrading to 2.1 WP Lighbox 2 plugin stopped working.
If that is the case please go to “Setting->WP Lightbox 2″ page make sure that check box “Auto-lightbox image links”. Save changes and see if working.
Case B: while doing upgrade you got any error.
In this case please delete the plugin and install again the WP Lightbox 2 plugin and follow the steps describes above in case A.
Hi
Sorry, it´s a Case A
I tried the to check the “auto lightbox links” like you said but still not working…?
I have the same problem. http://www.romanceofflight.com/blog
After upgrading from 2.0 to 2.1 the lightbox stopped working. “Auto-lightbox image links”.box is checked
I just re-installed 2.0 and it works fine.
You are best Jha, you covered lighbox as well as color box both. Its very easy to implement both bulk and indivisual options are available in WP Lightbox 2
Great lightbox plugin for my wordpress site
Hello
I use poedit to get my language po & mo files,
Where should I them?
Thank you
Hi Dinno, Please send me. I will update in WP Lightbox language repository
hi, I am using this plugin and it worked perfectly with images that are uploaded to my server and putting rel= code to one but it’s doesn’t work in all of my images since most of them are hosted from my photobucket account. I tried going to the image advance setting by adding rel=”lightbox” even copied that one in your link the rel=rel=”lightbox[26]” ( i know I’m silly) still not working. I am just wondering is there a code that lightbox 2 will affect all my images even those images that are hosted from Photobucket?
Hi,
I have the same issue as @Trey, the Close text and image don’t close the lightbox. Any chance of a fix, plugin does exactly what I want otherwise
MC
Hi there. I’m also getting an issue with the close button not working. See http://snookerdelight.com/2012/04/11/canadian-snooker-players-from-the-70s-80s-and-90s/
nothing happen, after installation, and i click on image in my post…image show not in lichbox
Thanks for the plugin. It works really fine with firefox and ghrome but i face problem with IE 9. Can you please tell me which CSS part I should chage to fix the problem?
You can look at this page for the problem >> http://shine.primenews24.com/bangladeshi-model-anika-kabir-shokh-photo-gallery.xhtml
Hi, thanks for nice plugin, I have just one question, how i can hide caption area?
great plugin. 2 suggestions:
- add some explanation on how to upgrade from earlier version. I found out that this new version 2 doesn’t replace the older version, but rather install on a new directory. I removed the old version by hand
- add configurable options for these options found in lightbox.js file:
var overlayOpacity = 0.8; // controls transparency of shadow overlay
var animate = true; // toggles resizing animations
var resizeSpeed = 9; // controls the speed of the image resizing animations (1=slowest and 10=fastest)
if would be nice to be able to modify them in the option GUI rather than directly in the js file.
Hi!
I just want only some pictures to be shown by lightbox 2.
So I think I would disable the “auto” -function before activating?
Do I have to write a “rel=wp-lightbox-2″ to the specific image?
And where do I place the bigger image and do I include it to lightbox?
thanks!
Jörn
Thanks Jorn for your input !
Please check the demo page for “WP Lightbox 2″, you will have your answer.
http://onlinewebapplication.com/wp-lightbox-2-demo
Thanks
Hey Trey, I think its working fine for your site too. Are you using some other Lightbox plugin also. Can you please reconfirm again.
Hi there,
Love the plugin but one small problem; the close text on the lightbox (and the x next to it) doesn’t close the lightbox. Users can still get out of the interface by clicking outside the image but i was wondering if there was a fix? here’s an example page with multiple images using the plugin: http://geeky.ly/the-elder-scrolls-v-skyrim-review/