Disable Any theme timepicker

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.
  1. function remove_divi_timepicker_on_event_page() {
  2. global $post_type;
  3. if($post_type == 'event_listing')
  4. {
  5.     wp_dequeue_script('et_bfb_admin_date_addon_js');
  6.     wp_dequeue_script('et_pb_admin_date_addon_js'); 
  7.     wp_deregister_script('et_bfb_admin_date_addon_js');
  8.     wp_deregister_script('et_pb_admin_date_addon_js'); 
  9. } 
  10. }
  11. 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.

    • Related Articles

    • Create Child Theme

      A child theme is a game changer especially for those developers who are not sure about designing a WordPress site. The child theme works like a subtheme of the main theme that carries all its functionalities, features and style. Since you have landed ...
    • How to Download and Edit the Prebuilt Theme by WP Event Manager

      In order to download a pre-built theme from the Demo site of the WP event manager, you need to perform the steps mentioned below: Click on Download the Theme, whichever you wish to use. A Zip file is saved to your Desktop. You need to next install ...
    • How to Disable Social Media share links?

      The following code can be implemented in the functions.php file of the child theme to hide the Social Media share links on specific events. Open your child theme, Add the following code into the functions.php file. add_filter( ...
    • Hide Comment on Single Event Listing Page

      A user of WP Event Manager can display or hide the comment section on the single event listing page. In this guide, you will learn about how you can disable or hide the comment section on your single event listing page. Here are the steps you need to ...
    • Hide Additional Information Section from Single Event Page

      Different businesses have different requirements and custom fields help them adjust single event listing fields as per their requirements. WP Event Manager offers a separate section in the single event listing page named Additional fields that ...