coming soon Something exciting is coming soon – stay tuned to find out! 🚀✨
You can reach out to support to receive a discount on your purchase.
How can we help?

Disable Any theme timepicker

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:

  1. Open your child theme,
  2. Add the code into the funtions.php file.

    Here is a sample field where you can disable the Divi theme time picker:

    function remove_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 );
    

For any other theme, You can change the code according to your theme script file.

Quick Links
Close
Close