Hide the close "X" button in Fancybox

If you take a look at the documentation at http://fancybox.net/api it cites an option of showCloseButton that should do the trick.

From the site:

showCloseButton - Option to show/hide close button


In fancybox 3 use 'modal' e.g.

        $.fancybox.open({
            ...
            opts: {
                modal: true,
            }
        });

Looks like showCloseButton doesn't work any more. After looking into the fancybox code i figured out closeBtn should be set to false.

So in order to hide close button one should add below line in options -

'closeBtn' : false