Conflict with the built-in datepicker
-
Loading the built-in date picker (jQuery UI) along with the plugin’s date picker (Bootstrap) makes the plugin date picker not working.
To reproduce the problem, try to make a dummy plugin to load the built-in date picker like in the example below:
<?php /** * Plugin Name: Example Plugin */ function example_enqueue_scripts() { wp_enqueue_script('jquery-ui-datepicker'); } add_action('wp_enqueue_scripts', 'example_enqueue_scripts');
After that plugin is activated, try to click the “Now onwards” on the “event” page to show the Bootstrap date picker. The date picker is not showing compared to when the dummy plugin is not activated.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Conflict with the built-in datepicker’ is closed to new replies.