Support » Plugin: The Events Calendar » PODS and The Events Calendar Conflict

Viewing 6 replies - 1 through 6 (of 6 total)
  • Jim True

    (@jimtrue)

    Pods Plugin here: What type of fields do you have active on that particular page from Pods? Also any information you can give from your Javascript Console might also help.

    Tisha Oehmen

    (@paraduxmedia)

    Found the answer here: https://github.com/pods-framework/pods/issues/3700

    Adding this to the functions file solves the problem

    /**
     * Disable enqueued Pods select2 and handlebars scripts
     * on The Events Calendar admin edit screens.
     *
     * @see https://github.com/pods-framework/pods/issues/3700
     */
    add_action( 'admin_footer', function(){
    
    	if ( 'tribe_events' == get_current_screen()->post_type ) {
    
    		wp_dequeue_style( 'pods-select2'  );
    		wp_dequeue_script( 'pods-select2' );
    		wp_dequeue_script( 'pods-handlebars' );	
    
    	}
    
    });
    Tisha Oehmen

    (@paraduxmedia)

    I have a CPT hooked to events (Duty roster for a meeting). But the above solved the problem so I’ll mark it as solved.

    Jim True

    (@jimtrue)

    Sounds great, glad that worked for you. I think once more of us are all using Woo Select, that’ll be name-spacing that particular library and stopping all the conflicts.

    Thanks for the updates!

    Plugin Author Barry

    (@barryhughes-1)

    Thanks for marking this as resolved, Tisha, and for sharing your notes 🙂

    Also, FYI to all involved. The Automattic/Woo team are in the process of getting their WooSelect library improvements merged back into the Select2 in an official way.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘PODS and The Events Calendar Conflict’ is closed to new replies.