Title: Bug: CSS being applied when disabled
Last modified: May 17, 2017

---

# Bug: CSS being applied when disabled

 *  [squarestar](https://wordpress.org/support/users/squarestar/)
 * (@squarestar)
 * [9 years ago](https://wordpress.org/support/topic/bug-css-being-applied-when-disabled/)
 * Thanks for the plugin! There is a slight problem with CSS rules being applied
   when setting WP Inspect to disabled via the admin bar item. For example, elements
   with the class “container” are being given a max width. This class is very common
   in themes and so the plugin can create havoc even when disabled.
 * What about adding a class to the root element via javascript when the feature
   is set to Enabled and then adding that element to all the plugin’s css selectors?

Viewing 1 replies (of 1 total)

 *  Plugin Author [explodybits](https://wordpress.org/support/users/explodybits/)
 * (@explodybits)
 * [9 years ago](https://wordpress.org/support/topic/bug-css-being-applied-when-disabled/#post-9142320)
 * So I’m looking through my CSS and I’m not seeing that. I have two stylesheets,
   one for frontend, another for the admin.
 * The screen.min.css (frontend) & screen-admin.min.css (admin) each only having
   one reference to max-width, which applies to the pre element in the popups:
 * `.qtip-content pre{text-overflow:ellipsis;line-height:1.25;<strong>max-width:
   100%</strong>;padding:.25em`
 * I’m running the plugin under a vanilla install of WordPress with no other plugins
   enabled. Any additional information would be helpful, but I’m not seeing it on
   my end.

Viewing 1 replies (of 1 total)

The topic ‘Bug: CSS being applied when disabled’ is closed to new replies.

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

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)

 * 1 reply
 * 1 participant
 * Last reply from: [squarestar](https://wordpress.org/support/users/squarestar/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/bug-css-being-applied-when-disabled/)
 * Status: not a support question