This guide will help you disable a particular theme timepicker and get back to the default one that is offered by the plugin.
To disable the theme timepicker, follow the below mentioned steps:
- Open your child theme,
- Add the code into the funtions.php file.
functionremove_divi_timepicker_on_event_page() {global$post_type;if($post_type=='event_listing'){-
wp_dequeue_script('et_bfb_admin_date_addon_js'); wp_dequeue_script('et_pb_admin_date_addon_js');-
wp_deregister_script('et_bfb_admin_date_addon_js'); wp_deregister_script('et_pb_admin_date_addon_js');}- }
add_action('admin_enqueue_scripts','remove_divi_timepicker_on_event_page', 20 );