Title: Do not overwrite jquery-ui.css
Last modified: September 9, 2016

---

# Do not overwrite jquery-ui.css

 *  [Antonio Villegas](https://wordpress.org/support/users/avillegasn/)
 * (@avillegasn)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/do-not-overwrite-jquery-ui-css/)
 * My name’s Antonio and I’m one of the developers of [Nelio Content](https://wordpress.org/plugins/nelio-content/).
   Recently, we identified that your plugin is breaking the UI of ours.
 * Please avoid overwriting `jquery-ui.css` script. Check your plugin (line 191,`
   pagebar_options.php`) where you include the script directly from `https://ajax.
   googleapis.com`. You should only enqueue that script on the pages you need it.
   Right now you’re enqueueing the script everywhere, which breaks WordPress’ default
   styles (and ours).
 * The [Plugin Handbook](https://developer.wordpress.org/plugins/javascript/enqueuing/)
   states the following:
 * > The admin_enqueue_scripts hook passes the current page filename to your callback.
   > Use this information to only enqueue your script on pages where it is needed.
   > The front-end version does not pass anything. In that case, use template tags
   > such as is_home(), is_single(), etc. to ensure that you only enqueue your script
   > where it is needed.
 * For more information about a similar issue we found with another plugin and the
   proposed solution please [read this](https://neliosoftware.com/blog/when-wordpress-freedom-kills-your-business/).
    -  This topic was modified 9 years, 8 months ago by [Antonio Villegas](https://wordpress.org/support/users/avillegasn/).

The topic ‘Do not overwrite jquery-ui.css’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/pagebar_fbfbfb.svg)
 * [Pagebar2](https://wordpress.org/plugins/pagebar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pagebar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pagebar/)
 * [Active Topics](https://wordpress.org/support/plugin/pagebar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pagebar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pagebar/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Antonio Villegas](https://wordpress.org/support/users/avillegasn/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/do-not-overwrite-jquery-ui-css/)
 * Status: not resolved