Search code examples
jqueryhtmlfancybox

Hide the close "X" button in Fancybox


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.


Solution

  • 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