Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #17739

    Some other users have noted that (large) vertical photos break the lightbox. I can understand that limitation. I would like a solution to deactivate the lightbox for vertical photos. I tried creating a quick javascript solution to disable the lightbox.

    //  Kill Lightbox on vertical images
    if ($('.slideshow').height() > 600) {

    $('.slideshow a').attr('rel', '');


    Unfortunately, because the photos have the (nice) effect of fading and scaling on page load, they slideshow actually has a height of 0 when the page loads and my script runs.

    Is there a simpler solution I don’t know of for adding a class or killing the rel attribute on vertical photos?




    You can try to add a timeout/delay to your js function:

    Best regards,



    Thanks for the tip. As it turns out, however, PrettyPhoto was crashing because of the size of the description for some photos — a relatively easy fix when I knew what to look for.



    Hi AlliantStudios,

    Glad that its fixed. :)



Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Vertical Photos & Lightbox’ is closed to new replies.