Flexible Lightbox

WordPress has a simple way to handle images on your blogs: you can upload, organize and insert images on your post with just 2 or 3 clicks. The application also creates thumbnails and medium sizes images automatically and allows you to insert them as a simple gallery into your posts and pages.

Integrate into your front-end nice javascript effects like Thickbox, Lightbox, Slimbox , Milkbox, Lightview is a plus, but would be better if you don’t need to touch the html code for it. That’s why the CMS technology exists.

After developing the plugin Wp ThickBox Integration,  I decided to extend this features to “Lightbox” a cool jquery plugin to overlay images on the current page. In this case you can decide in the  admin “images setting panel” if you want to “Open your images using Lightbox”.

Single Image Example


1. Upload ‘flexible lightbox’ folder to the ‘/wp-content/plugins/’ directory
2. Activate the plugin through the ‘Plugins’ menu in WordPress.
3. And that’s it.


In this case I’m using the native gallery tag “gallery columns=3” with the default styles.


(The plugin needs to be updated to the last 3.5 version of WordPress)

DO NOT make a Donation:

– If you don’t find this plugin useful,
– If you don’t believe in the Open Source Philosophy,
– If you don’t want to make your day different,

Otherwise, consider to share a small amount  😉


213 thoughts on “Flexible Lightbox”

    1. I fixed temporarily, changing the file “jquery.lightbox-0.5.css”:

      #lightbox-image {
      WIDTH: 800px !important; HEIGHT: 600px !important;

      WIDTH: 820px !important; HEIGHT: 620px !important;
      WIDTH: 800px !important; HEIGHT: 600px !important;
      WIDTH: 800px !important;

      but I feel that isn’t the best way.

  1. Sometimes the images I have are huge. Is there any option to make the lightbox scale the image so that it isn’t any larger than the browser window?

      1. Having the same scaling issue – is there a way to scale down large images automatically so that it fits to the browser window?
        I know my messeage is basically the same, just keeping the feed allive!


  2. Hi, how can I remove the lightbox code from images gallery? This is conflicting with my attachment.php page. I just want to make the images (only gallery images) opening in a new attachment window, but I can’t. Please, help! 🙁

Leave a Reply

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