V
V
Vadim Timoshenko2018-10-19 17:04:41
JavaScript
Vadim Timoshenko, 2018-10-19 17:04:41

How to place an element to the right of an image in a fancybox window?

You need to insert an application form in all pop-up windows to the right of the image or video.
It worked out to insert it in the caption, but I still don’t understand how to place it on the right.
I would insert the bootstrap markup there, but what is the right way to do it? While using this:

$('[data-fancybox]').fancybox({
    caption: function( instance, item ) {
      return $(document).find('#form').html();
    }
  });

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tyzberd, 2018-10-22
@PbI6A_KuT

https://fancyapps.com/fancybox/3/docs/#options
baseTpl : "your template"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question