ITADN

GLlightbox repeating feature image twice

#576Closedyyyames 创建于 2025-12-17
Y
yyyamescommented
**Describe the bug** GLightbox is repeating the first image of the lightbox. I've tried for hours to fix this and looks to be something with GLightbox. Driving me nuts! Much appreciated if you take a look! **Are you able to reproduce the bug in the demo site** No **To Reproduce** Steps to reproduce the behavior: 1. go to this link: https://new.jwidener.com/portfolio/test-portfolio/ 2,3,4. Click on the last image on the page and cycle though you will see the image you clicked on show up then the next arrow will be the same image. I've also supplied the HTML I am using. **Expected behavior** You click the image the image is in the lightbox then when you click next its the specified next image.... **Post the code you are using** ```html <div class="lightbox-gallery-wrapper"> <div class="lightbox-item"> <a class="glightbox" href="https://new.jwidener.com/wp-content/uploads/2024/03/portfolio-3.jpg" data-gallery="portfolio-1"> <img src="https://new.jwidener.com/wp-content/uploads/2024/03/portfolio-3.jpg" alt="Portfolio image"> <div class="lightbox-icon"> <i class="bi bi-arrows-fullscreen"></i> </div> </a> </div> <a class="glightbox hidden-slide" href="https://new.jwidener.com/wp-content/uploads/2024/03/portfolio-4.jpg" data-gallery="portfolio-1"></a> <a class="glightbox hidden-slide" href="https://new.jwidener.com/wp-content/uploads/2024/03/portfolio-5.jpg" data-gallery="portfolio-1"></a> <a class="glightbox hidden-slide" href="https://new.jwidener.com/wp-content/uploads/2024/03/portfolio-6.jpg" data-gallery="portfolio-1"></a> </div> ``` **Screenshots** If applicable, add screenshots to help explain your problem. **Desktop:** - windows 11 home - Firefox / Brave - Version current both. **Smartphone:** - Device: samsung s25 ultra - OS: idk - Browser [Firefox / Brave] - Version current both
关闭于 2025-12-17 3 条评论