Hide the close "X" button in Fancybox

HP. picture HP. · Nov 16, 2009 · Viewed 52.5k times · Source

I am using this http://fancybox.net/

Is there a way to add a property to not show the close "X" button on top right? I mean I can use 'callbackOnShow' to hide it in a hide() but that is not fast enough. I want it NOT rendered out instead of rendered then hide.

Answer

Yogesh Agarwal picture Yogesh Agarwal · Nov 23, 2012

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