If you’ve come to this page because your lightbox is opening in a new window make sure your WordPress theme has the correct template tags. Recently, I was building a gallery for my theme and I had the same problem. You need to have the wp_footer() API hook in your footer.php file. To learn more about WordPress API hooks, check out the WordPress theme development page.
The answer to your lightbox gallery problems is here.
Last night, I was pressed for time developing a WordPress site for my friend who happens to be an upcoming musician out of Sweden. Before we get started you can check out the new gallery to see how it functions. (Caroline Larrson Official) The launch is on October 23rd and everything was ready to drop on iTunes. The website had been neglected all summer with both of us being busy and we had to throw everything together quickly. After all, what artist doesn’t have a website up and running at all times if you are anywhere near the mainstream? (hrrm…http://www.kidcudi.com…seriously. I’m getting big timed hardcore on Twitter.) Anyway, I ran into some major issues when implementing a lightbox gallery in the WordPress.
If you haven’t noticed yet I use the Flexible Lightbox plugin on my Portfolio page to showcase my designs to potential clients. That plugin has always been quite a pain in the ass to me. It never works when I try to simply import a gallery all at once instead of doing all of the images individually. The CSS code has to be tweaked every single time I go in to edit.I will be taking my own advice soon and upgrading to the Lightbox Plus WordPress plugin by 23Systems.net.
I tried just about every single lightbox plugin possible including Lightbox 2, Shadowbox, and Flexible Lightbox. They just would not work with my new theme design. The images in the gallery just kept popping the images into a new window tab which is extremely boring. After getting frustrated I performed a search in google and hit this page.
After reading through the frequently asked questions and troubleshooting page for the Lightbox Plus plugin I was immediately convinced that there was some good development behind the plugin so I installed it. After installing the plugin I was immediately impress by the array of options available within the admin panel. The screenshot below does not do justice.
Lightbox Plus Options Sample
One of the most impressive options within Lightbox Plus is the style setting. Many bloggers are not very knowledgeable in CSS customization and the plugin clearly takes care of it with so many choices already available. A few of other settings available Resize Speed, Transition Type, Overlay Opacity, Slideshow, Previous/Next Labels, and much more. You can check the plugin out at the 23Systems.net home page or I’ve provided a direct link to the WordPress.org plugin below for quick download. Enjoy creating your lightbox gallery with efficiency and ease!