U
U
undef_null2017-06-27 13:19:37
JavaScript
undef_null, 2017-06-27 13:19:37

fantasy box. How to configure for all site image collections?

There is a site on Bitrix.
This site has a section with materials.
Each material has its own page with its own collection of images.
Please tell me the solution of how you can set up this plugin (FancyBox) in one place so that all collections on all pages are displayed correctly (pop-up modal window with the original image on click)

Probably, as an option, wrap each collection in a block with a certain class and process all these blocks with a script

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Kirenkov, 2017-06-27
@undef_null

$('.link-fancybox').fancybox();
`.link-fancybox` - put this class on each link in the gallery and you will be happy. These links are still automatically generated for you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question