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. Read more →