Topic: Lightbox Image Gallery not working properly
denys-lopez pro asked 7 years ago
Jakub Strebeyko staff answered 6 years ago
Hi there everyone,
As for MDB Lightbox
, it's designed to work with the newest installment of jQuery - 3.2.1
. For experience I know that using MDB Lightbox
can be tricky for at least several reasons. Firstly, it requires initializing with load
jQ method. Secondly, copy-pasting the example from our documentation may often not be sufficient, as it assumes the path to mdb-addons
directory, which can be located somewhere else in your project. Lastly, at least in Chrome
it cannot be served straight from the file-system because of the cross-reference request for a .html
file, therefore necessitating some kind of a server mocking utility (for example Live Reload
in VS Studio Code
. In case the issue requires further assistance, please provide your code and the potential error-logging output from the Developer Tools console.
With Best Regards,
Kuba
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No
Bartłomiej Malanowski staff commented 7 years ago
what's your version of MDB? do you get any console errors?Sphokazi Novuka pro commented 6 years ago
Hello. I have been having the same issue for days now and it appears that a lot of people are. Is there any help? I find that when I use the old version of jQuery, i.e.3.1.1 the lightbox works albeit without the controls, but at least one can zoom the images, however 3.1.1 disables all other css features. To my novice eyes, I'd say that your Lightbox needs to be updated to work with the latest jQuery version. Can you please give an idea of when this could be done. My code is a literal copy and paste of the MDB Pro code.