Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Daniel Roch

    (@confridin)

    Did you try another plugin, for example FancyBox plugins ?

    Thread Starter Isabella Chen

    (@wyafer)

    Hi Daniel, it does not work with FancyBox plugins either.

    Plugin Author Daniel Roch

    (@confridin)

    Did you tried to empty your cache, or to only use 2 plugins : Deferred Javascript and a FancyBox one ?

    Thread Starter Isabella Chen

    (@wyafer)

    Yes, I emptied the cache, deactivated all plugins excepted Deferred Javascript and Fancybox plugin. The Deferred Javascript plugin still breaks the Fancybox plugin. :/

    Plugin Author Daniel Roch

    (@confridin)

    And did you tried with another theme ?

    Thread Starter Isabella Chen

    (@wyafer)

    Hi, yes, I have tried it with two standard WP themes, Twenty Eleven and the latest one, Twenty Fifteen. I de-activated all plugins except Deferred Javascript, and Fancybox, and the Deferred Javascript prevents the Fancybox plugin from working. ??

    Plugin Author Daniel Roch

    (@confridin)

    Did you cleared your cache ?

    Thread Starter Isabella Chen

    (@wyafer)

    Yes, I cleared the cache. I deactivated both Fancy Box and Deferred Javascript, cleared the cache, activated both, and the Deferred Javascript plugin still prevented Fancy Box from working correctly…

    Hello there,

    With Lightbox Plus Colorbox, add that code in your functions.php to exclude the script which have a conflict with WP Deferred JavaScripts:

    // Don't defer this script.
    add_filter( 'do_not_defer', 'exlude_lightbox_scripts' );
    function exlude_lightbox_scripts( $do_not_defer ) {
    		$do_not_defer[] = 'jquery-colorbox';
    		return $do_not_defer;
    }

    You can try to search every script loaded in your plugin by the way of “wp_enqueue_script()” to exclude the scripts one by one to find the one that should not be differed.

    P.S: I found all of that in the readme.txt of the plugin.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Breaks Lightbox Plugin’ is closed to new replies.