Glightbox does not load #482
CaptDedEyes
started this conversation in
General
Replies: 3 comments 4 replies
-
Do you have any code that looks like this? const gl = GLightbox(); GLightbox doesn't auto initialize, you still need to call the function. |
Beta Was this translation helpful? Give feedback.
0 replies
-
No, actually. Where is that supposed to go? HTML, JS, CSS? Or some different file that I don't have yet? |
Beta Was this translation helpful? Give feedback.
2 replies
-
Can i check if Glightbox is allready loaded by testing if window.glightbox exists? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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:
<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)<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.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:
Beta Was this translation helpful? Give feedback.
All reactions