• Resolved vanamakiran

    (@vanamakiran)


    If admin selects Load JavaScript in Footer in other tab of fancy box settings.In front end fancy box js is not loading at the bottom of the body .There is an error in fancy box.php Do following changes to fix it

    -line 188 : wp_enqueue_script(‘fancybox’,FBFW_URL . ‘/js/jquery.fancybox-1.2.6.min.js’, $loadAtFooter); // Load fancybox without jQuery (for troubleshooting)
    + line 188 :wp_enqueue_script(‘fancybox’,FBFW_URL . ‘/js/jquery.fancybox-1.2.6.min.js’, array(), null, $loadAtFooter); // Load fancybox without jQuery (for troubleshooting)

    -line 426 : add_action(‘wp_head’, ‘mfbfw_init’);
    + line 426: $settings = mfbfw_get_settings();
    + if ($settings[‘loadAtFooter’]) add_action(‘wp_footer’, ‘mfbfw_init’,12);
    +else add_action(‘wp_head’, ‘mfbfw_init’);

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

  • The topic ‘[Plugin: FancyBox for WordPress] Load JavaScript in Footer Error fixed’ is closed to new replies.