Title: Fix: Problematic CSS enqueue
Last modified: February 12, 2024

---

# Fix: Problematic CSS enqueue

 *  [jhtjards](https://wordpress.org/support/users/jhtjards/)
 * (@jhtjards)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/fix-problematic-css-enqueue/)
 * This plugin has a problematic css enqueue, that messes up checkboxes in admin,
   because of the slider.css that is enqueued for the backend switches. 
   ( slider.
   css applies a position:absolute to any element with the class .checked ) As a
   quick fix add this to your functions.php:
 *     ```wp-block-code
       function remove_datetimepicker_css(){
           if ( !isset($_GET['page']) || $_GET['page'] != 'dtpicker' ) {
               wp_dequeue_style('dtpkr-slider-style');
           }
       }
       add_action( 'admin_enqueue_scripts', 'remove_datetimepicker_css', 100 );
       ```
   

Viewing 1 replies (of 1 total)

 *  [niel.o](https://wordpress.org/support/users/nielorit/)
 * (@nielorit)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/fix-problematic-css-enqueue/#post-17420545)
 * Hey [@jhtjards](https://wordpress.org/support/users/jhtjards/)
 * Thanks for letting us know about this CSS problem. I’ll pass it on to our developer
   team to look into and fix. We appreciate you sharing this quick fix!
 * If you have any other concerns or questions, feel free to reach out.
 * Best,
 * Niel, Input WP Support Team

Viewing 1 replies (of 1 total)

The topic ‘Fix: Problematic CSS enqueue’ is closed to new replies.

 * ![](https://ps.w.org/date-time-picker-field/assets/icon.svg?rev=2964043)
 * [Availability Datepicker – Booking Calendar for Contact Form 7 – Input WP](https://wordpress.org/plugins/date-time-picker-field/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/date-time-picker-field/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/date-time-picker-field/)
 * [Active Topics](https://wordpress.org/support/plugin/date-time-picker-field/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/date-time-picker-field/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/date-time-picker-field/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [niel.o](https://wordpress.org/support/users/nielorit/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/fix-problematic-css-enqueue/#post-17420545)
 * Status: not resolved