biati-digital / glightbox

Pure Javascript lightbox with mobile support. It can handle images, videos with autoplay, inline content and iframes
MIT License
2.01k stars 226 forks source link

Glightbox does not load #481

Closed CaptDedEyes closed 4 months ago

CaptDedEyes commented 4 months ago

Describe the bug Despite plugging in the basic offline HTML code pieces into my site and a basic example of a code string for an image, Glightbox is still not working.

Are you able to reproduce the bug in the demo site No.

To Reproduce Steps to reproduce the behavior:

  1. Insert <link rel="stylesheet" href="css/glightbox.css" /> and <script src="js/glightbox.min.js"></script> (Both of these pieces link to the folders that I placed the CSS & JS files in)
  2. Insert a code example of an image. In my case it was <a href="img/img.jpg" class="glightbox"><img src="img/img.jpg" alt="image" /></a> and that too is properly sourced to the image folder.
  3. Test the lightbox by clicking on the corresponding image when viewing the website, only to be taken thru a direct link to the image itself.

Expected behavior I'm expected to see SOMETHING related to the lightbox appearing, but instead, I'm just taken to a direct link of the image itself.

Desktop: