Title: Css code changes when the plugin is disabled
Last modified: August 25, 2019

---

# Css code changes when the plugin is disabled

 *  Resolved [test484848484](https://wordpress.org/support/users/tellyboxcasting/)
 * (@tellyboxcasting)
 * [7 years ago](https://wordpress.org/support/topic/css-code-changes-when-the-plugin-is-disabled/)
 * Hi there,
 * I have a problem specifically with the blog page on my website.
 * When I turn off the plugin, the css is different to the rest of the website, 
   as if it has excluded the css from aspects of the page.
 * However, when I turn it on the page css is fine again.
 * Is there any cause for this and how can I fix it?

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years ago](https://wordpress.org/support/topic/css-code-changes-when-the-plugin-is-disabled/#post-11865310)
 * Impossible to say what is happening there without a URL I’m afraid, so I’ll have
   to give some generic feedback:
    a) AO doesn’t change the original CSS (or JS)
   b) when aggregating AO groups the CSS by media-attribute, which can result in
   a slightly different order which in turn can result in the end-result being different
   as well.
 * so if (b) was happening and you tweaked the CSS as a workaround, then when disabling
   AO CSS opt. you might also have to undo that tweak?
 * frank
 *  Thread Starter [test484848484](https://wordpress.org/support/users/tellyboxcasting/)
 * (@tellyboxcasting)
 * [7 years ago](https://wordpress.org/support/topic/css-code-changes-when-the-plugin-is-disabled/#post-11865314)
 * Hi,
    I notice when “Aggregate all linked CSS-files? If this option is off, the
   individual CSS-files will remain in place but will be minified” It breaks the
   css for the page
 * [https://castingbox.co.uk/blog](https://castingbox.co.uk/blog)
 *  Thread Starter [test484848484](https://wordpress.org/support/users/tellyboxcasting/)
 * (@tellyboxcasting)
 * [7 years ago](https://wordpress.org/support/topic/css-code-changes-when-the-plugin-is-disabled/#post-11865317)
 * So I want to continue using the plugin however I would like the site to load 
   correctly without the plugin if that makes sense.
 *  Thread Starter [test484848484](https://wordpress.org/support/users/tellyboxcasting/)
 * (@tellyboxcasting)
 * [7 years ago](https://wordpress.org/support/topic/css-code-changes-when-the-plugin-is-disabled/#post-11865321)
 * here is what it should look like and does on other pages – [https://castingbox.co.uk/wp-content/uploads/2019/08/Screenshot-2019-08-25-at-18.01.56.png](https://castingbox.co.uk/wp-content/uploads/2019/08/Screenshot-2019-08-25-at-18.01.56.png)
 * [https://castingbox.co.uk/wp-content/uploads/2019/08/Screenshot-2019-08-25-at-18.03.00.png](https://castingbox.co.uk/wp-content/uploads/2019/08/Screenshot-2019-08-25-at-18.03.00.png)
 * here is what it currently looks like when the mode is enabled – [https://castingbox.co.uk/wp-content/uploads/2019/08/Screenshot-2019-08-25-at-18.02.40.png](https://castingbox.co.uk/wp-content/uploads/2019/08/Screenshot-2019-08-25-at-18.02.40.png)
 * [https://castingbox.co.uk/wp-content/uploads/2019/08/Screenshot-2019-08-25-at-18.02.52.png](https://castingbox.co.uk/wp-content/uploads/2019/08/Screenshot-2019-08-25-at-18.02.52.png)
    -  This reply was modified 7 years ago by [test484848484](https://wordpress.org/support/users/tellyboxcasting/).
    -  This reply was modified 7 years ago by [test484848484](https://wordpress.org/support/users/tellyboxcasting/).
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years ago](https://wordpress.org/support/topic/css-code-changes-when-the-plugin-is-disabled/#post-11865336)
 * don’t understand yet, so some more questions;
    * have you made a screenshot of
   just the sidebar (widgets) or is that the full page (in mobile view)? * so the
   sidebar styling is off on `/blog`, but can you give me an example (an exact URL)
   where it shown correctly when AO is CSS opt. off (or when “aggregate linked files”
   is off)? * can you enable AO CSS optimization & aggregation now so I can compare(
   later tonight)?
 * frank
 *  Thread Starter [test484848484](https://wordpress.org/support/users/tellyboxcasting/)
 * (@tellyboxcasting)
 * [7 years ago](https://wordpress.org/support/topic/css-code-changes-when-the-plugin-is-disabled/#post-11865358)
 * Hey
 * Just a screenshot of the sidebar both in mobile and non mobile view (same thing)
 * Here is a link to another page where it shows the correct styling :
    [https://castingbox.co.uk/job/ant-decs-saturday-night-takeaway](https://castingbox.co.uk/job/ant-decs-saturday-night-takeaway)
 * I have enabled the option for you, you will notice both pages look fine now. 
   But if I switch it off it breaks again.
 * Thanks in advance.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years ago](https://wordpress.org/support/topic/css-code-changes-when-the-plugin-is-disabled/#post-11865439)
 * OK, problem is the CSS in `wp-content/plugins/wp-job-manager/assets/css/job-listings.
   css` loads after the inline CSS (wp custome CSS) which also styles those job 
   listings, so job-listings.css ends up styling the widgets.
 * when all linked CSS is aggregated, the inline CSS is applied after the aggregated
   CSS so the inline CSS overrides job-listings.css and the widgets are styled by
   the inline CSS.
 * if you want this to work when AO is not active, you’ll have to change the inline
   CSS, adding !important flags where needed.
 * hope this clarifies,
    frank
 *  Thread Starter [test484848484](https://wordpress.org/support/users/tellyboxcasting/)
 * (@tellyboxcasting)
 * [7 years ago](https://wordpress.org/support/topic/css-code-changes-when-the-plugin-is-disabled/#post-11867031)
 * Thanks
 *  Thread Starter [test484848484](https://wordpress.org/support/users/tellyboxcasting/)
 * (@tellyboxcasting)
 * [7 years ago](https://wordpress.org/support/topic/css-code-changes-when-the-plugin-is-disabled/#post-11867033)
 * Would you be able to remove the links to my website on this support page now 
   that this issue has been solved please?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years ago](https://wordpress.org/support/topic/css-code-changes-when-the-plugin-is-disabled/#post-11867194)
 * Afraid I can’t edit posts test484848484 (even my own are un-editable for me after
   1 hour).

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

 The topic ‘Css code changes when the plugin is disabled’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/css-code-changes-when-the-plugin-is-disabled/#post-11867194)
 * Status: resolved