Support » Plugins » Lightbox Plugin – Adjust The Full Size?

  • I recently installed the lightbox plugin for WordPress 2.5.1 on my girlfriends blog since she will be posting a fair amount of images on it.

    I was able to get it installed and I think it works correctly. However, her images are really big and she does not have a program or easy way to resize them before posting them (and I doubt she would spend the time to do so, she has trouble updating the blog as it is).

    Is there a way to set a size to open the images as in lightbox? The problem is when you click the thumbnail, it opens so big you have to scroll around to see everything and even have trouble finding the close button for lightbox. Without the plugin, they just open in a new screen in Firefox and Firefox automatically shrinks them to a smaller width / height until you zoom in.

    Anyways, just wondering if there is a way to fix this. I’d like something a bit nicer than just opening the images in a new window, but if it could automatically size them down a bit (even though the file size won’t shrink) that would be great.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I have the same need, can somebody help?

    Must be in the lightbox.css, but am not pro enough to find the right tag…

    Fixed it! (with help of a collegue!)

    Find lightbox.js in your lightbox plugin folder

    Open it in text editor

    Find this:

    myLightbox.resizeImageContainer(imgPreloader.width, imgPreloader.height);

    replace with:

    /** we want a fixed width */
    var w = 500;
    var h= Math.floor((w / imgPreloader.width)*imgPreloader.height);
    Element.setHeight(‘stimuli_lightboxImage’, h);
    Element.setWidth(‘stimuli_lightboxImage’, w);

    myLightbox.resizeImageContainer(w, h);

    Fixed!

    Make sure you make a backup, cause I can’t give anu garranty. But it did the trick for me!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Lightbox Plugin – Adjust The Full Size?’ is closed to new replies.