- This topic has 11 replies, 3 voices, and was last updated 5 years, 6 months ago by .
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Datepicker Conflict with Tribe Events
I dont think all these are necessary but this is how I fixed it for now:
function remove_sf_scripts() {
if (tribe_is_event() || tribe_is_event_category() || tribe_is_in_main_loop() || tribe_is_view() || 'tribe_events' == get_post_type() || is_singular( 'tribe_events' )) {
wp_deregister_script( 'search-filter-plugin-build' );
wp_deregister_script( 'search-filter-plugin-chosen' );
wp_deregister_script( 'jquery-ui-datepicker' );
wp_deregister_style( 'search-filter-plugin-styles' );
}
}
add_action('wp_enqueue_scripts', 'remove_sf_scripts', 100);
Ah yeah, of course, there are more sections to exclude from 🙂
Thanks for sharing.
Best