Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #30521

    I have problem with TosRus lightbox (only with it, another lightboxes works ok):
    when there are 2 (or more) galleries with 2 (or more) images, then clicking to link of gallery opens lightbox twice. And user must close lightbox twice too.
    For example:

    <a href="//cdn.dfactory.co/wp-content/uploads/2016/08/pic1.jpg" data-rel="lightbox-gallery-1">Link gallery</a>
    <a href="//cdn.dfactory.co/wp-content/uploads/2016/08/pic2.jpg" data-rel="lightbox-gallery-1"></a>
    <a href="//cdn.dfactory.co/wp-content/uploads/2016/08/pic3.jpg" data-rel="lightbox-gallery-2">Link gallery 2</a>

    in this case click to “Link gallery” open lightbox twice.
    But click to “Link gallery 2” works ok, it opens single lightbox.


    I tested it in clear WP (4.9.9, php 7.2). And this problem repeated in case:

    <a href="//cdn.dfactory.co/pic1.jpg" data-rel="lightbox-gallery-1">Link gallery</a>
    <a href="//cdn.dfactory.co/pic3.jpg" data-rel="lightbox-gallery-2">Link gallery 2</a>
    <a href="//cdn.dfactory.co/pic2.jpg" data-rel="lightbox-gallery-1"></a>

    – second link of gallery-1 goes after main link of gallery-2. In this case lightbox opened twice.

    Please, help me.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.