Your Cart

Galleria lightbox (often) opens two screens at the same time

These forums are now closed to new replies / tickets.

Please open a support ticket from our new Support page.

Front Page Forums Problems Galleria lightbox (often) opens two screens at the same time

  • gravatar
    August 17, 2015 at 11:32 am

    Btw, this seems to work, however binding it to the close button
    (.galleria-lightbox-close) doesn’t.

    $(document).on(‘click’, ‘.galleria-lightbox-box’, function() {
    Galleria.get(0).closeLightbox(); });

    August 17, 2015 at 7:27 pm

    Where is the startpost? I am only seeing my own reaction

    August 19, 2015 at 9:41 am

    This can be closed. I am just deleting all lightbox items on a
    newly appended close button.

    September 11, 2015 at 4:42 pm

    Davidoff, could you explain what you are doing with a newly
    appended close button?

    I tried your first solution:

    $(document).on(‘click’, ‘.galleria-lightbox-box’, function() {
    Galleria.get(0).closeLightbox(); });

    which closes both windows, but it also causes the lightbox to
    close when trying to view next or previous images while inside the

    also tried binding to close button, with same result (doesn’t

    September 11, 2015 at 7:05 pm

    Update: I seem to have found the problem causing this. Tested
    only on a local folder structure for landing page development, so

    .galleria-lightbox-close and .galleria-lightbox-nextholder share
    the same z-index of 99999. This causes close to hide behind
    nextholder quite frequently. So when you think you hit the close
    button, you simply shift to the next image, causing the illusion
    that 2 lightboxes have been opened.

    Change z-index of ‘close’ to a higher value on line 2202 of
    galleria-1.4.2.js, or about 3/4 down the first line of
    galleria-1.4.2.min.js. I changed it to z-index: 199999; and it
    works fine.

    While your there you may want to double the size of the close
    box and font, since it is pretty tiny by default.

    September 14, 2015 at 10:31 am

    I found the same solution last week, so I can confirm that this
    works! Thanks for the support.

Galleria uses cookies to provide necessary site functionality. By using our website, you agree to our Privacy Policy. I understand