E
E
exedis2017-07-27 16:01:19
JavaScript
exedis, 2017-07-27 16:01:19

Why does Lightcase.js redirect to the main page?

Hi, I'm using flexslider for my photo gallery + Lightcase.js so that photos can be opened in full screen and flipped through as a slideshow. Everything works, but such a problem has come to light: if we press the left arrow on the first photo, nothing will happen the first time, and the second time it will redirect to the main page, similarly to the last photo, only if we click to the right. What could be the problem? I did everything according to the Lightcase.js manual

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita Kit, 2017-07-27
@ShadowOfCasper

Most likely because the arrows have something like one click -> in the gallery.
1) Change the lightcase to any other lightbox
2) Write a lightbox yourself using a slider Example:
https://github.com/WebKieth/Black-UI/blob/master/s...
3) Get into the lightcase sources and change the script, so that after the first slick the handler is not deleted.
4) If the arrows are executed in the form a href='empty here' then add the value javascript:void(0) to the href

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question