funnyhaha
Forum Replies Created
-
Forum: Plugins
In reply to: [Slick Slider] Uncaught TypeError: jQuery(…).slick is not a function(…)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');andwp_deregister_style('slick-slider-core-theme');remove the styles.Forum: Plugins
In reply to: [Slick Slider] Uncaught TypeError: jQuery(…).slick is not a function(…)Thank you for your help!
It would be nice to have a filter like the existing one (
slick_slider_init_slider) for scriptslick-slider-coreand stylesslick-slider-core,slick-slider-core-themeso you can easily use your own slick.- This reply was modified 9 years, 7 months ago by funnyhaha.
Forum: Plugins
In reply to: [Slick Slider] Uncaught TypeError: jQuery(…).slick is not a function(…)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.jshooks into the WP jQuery but then get’s overwritten by my themes jQuery version, sojQuery('.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'); }