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');
}