Thank you for the answer @arisoft
The second function works fine, but I struggle with the first one.
I added custom JC in plugin settings and tried making a button, but it doesn’t work. The code is the following:
“<input type=”button” id=”butnclick” value=”close” onclick=”jQuery.fancybox.close();”/>”
Cheers.