Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #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?

    Thanks

    #96647

    Hi!

    You can try to add a timeout/delay to your js function: http://www.w3schools.com/js/js_timing.asp

    Best regards,

    Peter

    #96648

    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.

    thanks

    #96649

    Hi AlliantStudios,

    Glad that its fixed. :)

    Cheers,

    Ismael

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

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