M
M
mhvrt2016-09-27 10:34:28
JavaScript
mhvrt, 2016-09-27 10:34:28

Plugin like fancybox, lightbox but image description not through data-attributes or title?

Hello everyone, can you please tell me a plugin/solution like fancybox or lightbox, where the description for the picture (caption) is inserted not through data- attributes or title, but separately, say, in some div. It is necessary to insert a small, but nevertheless with a bunch of inline styles, piece of html code (coming from the editor)

Schematically how it should look5ccd88fb04ca48d29283e6f2624f5039.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
raxweb, 2021-02-22
@raxweb

This is implemented through the original fancybox 3 with a small addition.
The caption text for the picture must be placed in a span.
Here is an example and a script: aceweb.ru/articles/ajax/fancybox-caption.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question