Title: Bad plugin behavior
Last modified: September 3, 2016

---

# Bad plugin behavior

 *  [Nícholas André](https://wordpress.org/support/users/nicholas_io/)
 * (@nicholas_io)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/bad-plugin-behavior/)
 * Dude, please.. You are enqueue jQuery UI styles everywhere and are breaking the
   styles of others plugins that use jQuery UI. You must enqueue it only on your
   page. And pay attention that WordPress already provides its styles of jQuery 
   UI, you are braking some styles of WordPress core features.
 * On one of your plugins update you did this and break various plugin styles.
 * I’m stop using your plugin now.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [wpdevart](https://wordpress.org/support/users/wpdevart/)
 * (@wpdevart)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/bad-plugin-behavior/#post-7952544)
 * Hi dear user.
 * Contact us at [support@wpdevart.com](https://wordpress.org/support/topic/bad-plugin-behavior/support@wpdevart.com?output_format=md),
   and send us your website url and we will try to optimize the Wp Lightbox 2 code.
 * Best Regards,
    WpDevArt support team.
 *  Thread Starter [Nícholas André](https://wordpress.org/support/users/nicholas_io/)
 * (@nicholas_io)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/bad-plugin-behavior/#post-7952554)
 * The problem is in Admin Panel. The plugin is enqueue the jquery-ui styles and
   overriding the default WordPress jQuery UI styles. You should only enqueue on
   the admin page of WP Lightbox 2.
 *  Thread Starter [Nícholas André](https://wordpress.org/support/users/nicholas_io/)
 * (@nicholas_io)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/bad-plugin-behavior/#post-7952555)
 * Here is the problem:
 *     ```
       public function enqueue_requeried_scripts(){
       396	                wp_enqueue_style("jquery-ui-style");
       397	                wp_enqueue_script("jquery-ui-slider");
       398	        }
       ```
   
 * You are enqueue your registered style in every single admin page. You should 
   check and do this only on you admin page.
 *  [wpdevart](https://wordpress.org/support/users/wpdevart/)
 * (@wpdevart)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/bad-plugin-behavior/#post-7952556)
 * Dear nicholas,
 * Contact us at [support@wpdevart.com](https://wordpress.org/support/topic/bad-plugin-behavior/support@wpdevart.com?output_format=md)(
   or just send us your email) and we will optimize our plugin and send you the 
   optimized version.
 * We will do an global update in upcoming weeks and optimize our plugin.
 * Best regards,
    WpDevArt support team.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Bad plugin behavior’ is closed to new replies.

 * ![](https://ps.w.org/wp-lightbox-2/assets/icon-128x128.png?rev=1093845)
 * [WP Lightbox 2](https://wordpress.org/plugins/wp-lightbox-2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-lightbox-2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-lightbox-2/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-lightbox-2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-lightbox-2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-lightbox-2/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [wpdevart](https://wordpress.org/support/users/wpdevart/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/bad-plugin-behavior/#post-7952556)