Title: Breaks admin CSS
Last modified: August 30, 2016

---

# Breaks admin CSS

 *  [Aurélien Denis](https://wordpress.org/support/users/maigret/)
 * (@maigret)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/breaks-admin-css/)
 * Hi,
 * my back-office is CSS broken because MailJet plugin for WordPress is loading 
   external jQuery UI CSS in the admin. You should enqueue_style and enqueue_script
   in a better way to prevent this kind of bugs. 🙂
 *     ```
       public function enqueue_scripts()
           {
               wp_enqueue_script('jquery-ui');
               wp_enqueue_script('jquery-ui-accordion');
               wp_enqueue_script('jquery-ui-tooltip');
               wp_enqueue_style('jquery-ui', '//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css');
               wp_enqueue_style('mailjet_css', plugins_url('/assets/mailjet.css', __FILE__));
               wp_register_script('mailjet_js', plugins_url('/assets/js/mailjet.js', __FILE__), array('jquery'));
               wp_enqueue_script('mailjet_js');
               $this->addMjJsGlobalVar();
           }
       ```
   
 * This piece of code shouldn’t load in every section of WP admin !
 * [https://wordpress.org/plugins/mailjet-for-wordpress/](https://wordpress.org/plugins/mailjet-for-wordpress/)

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

 *  [Ehmilieen](https://wordpress.org/support/users/ehmilieen/)
 * (@ehmilieen)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/breaks-admin-css/#post-6834902)
 * Hi,
 * I have the same problem. Is it possible to fix this problem quickly ?
 * Thanks…
 *  Plugin Author [Mailjet](https://wordpress.org/support/users/mailjet/)
 * (@mailjet)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/breaks-admin-css/#post-6834903)
 * Hello,
 * We investigated the issue, but we include a standard jQuery UI CSS – wp_enqueue_style(‘
   jquery-ui’, ‘//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css’);
 * Could you please check on your end if there’re any indications why your code 
   is conflicting with this jQuery UI CSS? We didn’t manage to reproduce it on our
   testing environment.
 * Could you please provide us with more details, on what page is broken (pls provide
   us with print screen), what error message do you get?
 * We remain at your disposal,
 * Thanks,
 * Mailjet team
 *  Thread Starter [Aurélien Denis](https://wordpress.org/support/users/maigret/)
 * (@maigret)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/breaks-admin-css/#post-6834905)
 * Hi,
 * here is a screenshot showing a conflict with the plugin Breadcrumb NavXT: [http://www.tiikoni.com/tis/view/?id=81d014d](http://www.tiikoni.com/tis/view/?id=81d014d)
 * The problem is that this line is loading in all part of the WP admin:
 * `<link rel='stylesheet' id='jquery-ui-css' href='//code.jquery.com/ui/1.11.4/
   themes/smoothness/jquery-ui.css?ver=4.3.1' type='text/css' media='all' />`
 *  Thread Starter [Aurélien Denis](https://wordpress.org/support/users/maigret/)
 * (@maigret)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/breaks-admin-css/#post-6834906)
 * Hi,
 * here is a screenshot showing a conflit with Breadcrumb NavXT:
    [http://www.tiikoni.com/tis/view/?id=81d014d](http://www.tiikoni.com/tis/view/?id=81d014d)
 * The problem is related to the fact that this CSS is loading in all part of WP
   admin :
 * href=’//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css?ver=4.3.1′ 
   type=’text/css’ media=’all’ />
 *  Plugin Author [Mailjet](https://wordpress.org/support/users/mailjet/)
 * (@mailjet)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/breaks-admin-css/#post-6834923)
 * Hello,
    Could you please install [our latest version 4.1.0](https://wordpress.org/plugins/mailjet-for-wordpress/changelog/)
   we have made some CSS improvements.
 * Thanks,
 * Mailjet team
 *  Thread Starter [Aurélien Denis](https://wordpress.org/support/users/maigret/)
 * (@maigret)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/breaks-admin-css/#post-6834924)
 * Hey it seems to solved the bug!

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

The topic ‘Breaks admin CSS’ is closed to new replies.

 * ![](https://ps.w.org/mailjet-for-wordpress/assets/icon.svg?rev=2994192)
 * [Mailjet Email Marketing](https://wordpress.org/plugins/mailjet-for-wordpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailjet-for-wordpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailjet-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/mailjet-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailjet-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailjet-for-wordpress/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Aurélien Denis](https://wordpress.org/support/users/maigret/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/breaks-admin-css/#post-6834924)
 * Status: not resolved