fbpx
Participate in our upcoming live webinar on upgrading your virtual meetings with Zoom on 26 th June at 10 pm IST.Register Now!
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.

Disable Any Theme Timepicker
Editorial Team

Our team constantly explores ways that technology can help us reinvent industries. We want to change the world by creating great products that transform industries. We Dream It, We Make It.

Quick Links
Close
Close