Answer the question
In order to leave comments, you need to log in
Why is the object I pass as the first argument when calling the fancybox method being ignored?
The site is on bitrix, there are other fancyBoxes on the page.
The entire site has the same fancyBox styles and settings.
I need another gallery on fancyBox, but somewhat different from the ones already there.
I just want to pass the configuration object I need and that's it, but for some reason it is ignored.
in other cases on the site, fancyBox is initiated like this:
<a href='/img/image.jpeg' data-fancybox="gallery">...</a>
<a class="gallery-pic" href="/img/image1.jpeg">картинка №1 </a>
<a class="gallery-pic" href="/img/image2.jpeg">картинка №2 </a>
$('.gallery-pic').fancybox({
showNavArrows: true,
overlayShow: false
});
$().fancybox({
selector : '.gallery-pic',
showNavArrows: true,
arrows: true,
overlayShow: false,
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question