Forums Forums Search & Filter Pro Datepicker Conflict with Tribe Events

Viewing 2 posts - 11 through 12 (of 12 total)
  • Anonymous
    #262288

    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);
    Ross Moderator
    #262509

    Ah yeah, of course, there are more sections to exclude from 🙂

    Thanks for sharing.

    Best

Viewing 2 posts - 11 through 12 (of 12 total)