I searched and found some questions about this before but none of the answers worked. What I want it to do is not close when I click outside the image but only on clicking the X in the corner.
I tried lots of different ideas and some made the image just open in the same framewhile some worked except that now the X in the corner was gone so I couldn´t close it at all.
The thing that got me closest was the "modal:true" but the X dissapeared using this.
Here´s my page and the images are under "Fotografier" in the menu: http://esoxluciusdegothia.blogg.se
The code I have for Fancybox is:
<script type="text/javascript">
$(document).ready(function() {
$(".fancybox").fancybox();
});
</script>
As I said, most of the 'answers' I tried just made the picture open in the same window like if it was a direct link to the picture. I want them to pop out and get navigation buttons + close button