WordPress.org

Ready to get started?Download WordPress

Forums

FancyBox for WordPress
[resolved] fancybox : hide the fancybox with a click on title (1 post)

  1. oliviadesens
    Member
    Posted 2 years ago #

    hello,
    in fancybox 1.3.4 when you use "hideOnContentClick: true," and you click on the title area you can not close the fancybox content.
    You need to be outside the title area....

    This is a solution to do it :

    in jquery.fancybox-1.3;4.js
    after the line 152 put the code :
    selectedOpts.hideOnTitleClick = false;

    after the line 603 put the code :
    if (currentOpts.hideOnTitleClick) {
    title.bind('click', $.fancybox.close);
    }

    and then at the end after :
    hideOnContentClick : true,
    put the code :
    hideOnTitleClick:true,

    hope it will help !

    http://wordpress.org/extend/plugins/fancybox-for-wordpress/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic