#
#
#FFFFFF2015-10-23 10:19:59
JavaScript
#FFFFFF, 2015-10-23 10:19:59

Two fancyboxes on a website with different designs?

It is necessary to fasten 2 pop-up windows to the site with a completely different design. I use fancibox. Faced with the fact that I do not quite understand how to make the design different. For example, the location of the same close button, which is loaded by the script, and which, accordingly, does not have its own selector.
Tell me how to be? It would not be desirable to fasten different plug-ins for each modal window.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Goncharov, 2015-10-23
@victory_vas

in the list of settings for the second fantasybox:
wrapCSS : Customizable CSS class for wrapping element (useful for custom styling)
This will probably add a class to the fancybox wrapper that you can dance around with.

N
Nina Kraviz, 2018-02-16
@avralexx

You can also do this, this is for those who, like me, practically do not fumble:
In the class, enter: "fancybox myclass"
and in CSS: a.fancybox.myclass

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question