Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter funnyhaha

    (@funnyhaha)

    add_action( 'wp_enqueue_scripts', 'slick_slider_deregister_core_js', 1000); works, the priority at the end is important (doesn’t work without it).

    If you’re adding this to the FAQ it might be worth mentioning that this also deregisters the inclusion of the plugins slick init-script js/slick-slider-init.js.

    Also wp_deregister_style('slick-slider-core'); and wp_deregister_style('slick-slider-core-theme'); remove the styles.

    Thread Starter funnyhaha

    (@funnyhaha)

    Thank you for your help!

    It would be nice to have a filter like the existing one (slick_slider_init_slider) for script slick-slider-core and styles slick-slider-core,slick-slider-core-theme so you can easily use your own slick.

    • This reply was modified 8 years, 5 months ago by funnyhaha.
    Thread Starter funnyhaha

    (@funnyhaha)

    I don’t include it manually.

    The problem is most likely that I’m using two jQuery Version, one from wordpress and one from my theme.

    slick.min.js hooks into the WP jQuery but then get’s overwritten by my themes jQuery version, so jQuery('.slick-slider-wrapper .slick-slider').slick() is undefined.

    I need my own jQuery though. Looking for a way to get your plugin to not register slick so I can do it myself after my theme’s jQuery is initialized.

    Tried this and a few variations, but it doesn’t work:

    
    add_action("wp_enqueue_scripts", "my_enqueue");
    
    function my_enqueue() {
      wp_dequeue_script('slick-slider-core');
    }
    
Viewing 3 replies - 1 through 3 (of 3 total)