• Hello,
    in case of prettyPhoto as default-Lightbox the attribute data-rel of the image links are wrong. A lightbox to a gallery with several images shows only the image I was clicked on and the arrows (left/right) are sliding to the same image.

    Steps to reproduce (fresh WordPress and Plugin installation):

    1) Chose prettyPhoto as default-Lightbox within /wp-admin/admin.php?page=responsive-lightbox-settings
    2) Add the gutenberg standard block gallery to a post and select 2-3 images.
    Select the option link to media file.
    3) Open Dev-Tools and check the <a>-tags of .wp-block-gallery within the <li>-tags (.blocks-gallery-item).
    The first image has the attribute data-rel="lightbox-image-0".
    The second image has the attribute data-rel="lightbox-image-1".
    The third image has the attribute data-rel="lightbox-image-2".

    If I manipulate the data-rel attributes and modify them to the same value (for example lightbox-1), everything is ok and I can slide from image to image.

    • This topic was modified 4 years, 8 months ago by 1benk1.

    The page I need help with: [log in to see the link]

  • The topic ‘Wrong data-rel on prettyPhoto-Lighbox’ is closed to new replies.