Title: Unchecking &#8216;Aggregate inline CSS&#8217; breaks site
Last modified: July 28, 2021

---

# Unchecking ‘Aggregate inline CSS’ breaks site

 *  Resolved [Marconi661](https://wordpress.org/support/users/marconi661/)
 * (@marconi661)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/unchecking-aggregate-inline-css-breaks-site/)
 * I’m not sure why, but switching off this option seems to ruin the layout of the
   site, as if some of the CSS gets deleted?

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/unchecking-aggregate-inline-css-breaks-site/#post-14709854)
 * Not deleted, but CSS when taken out of order can get overwritten, so that’s likely
   what is happening
 * Any particular reason why you need “also aggregate inline CSS” unchecked?
 * frank
 *  Thread Starter [Marconi661](https://wordpress.org/support/users/marconi661/)
 * (@marconi661)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/unchecking-aggregate-inline-css-breaks-site/#post-14709896)
 * My cache is getting full within 3-4 days. I’m aware my site has a lot of CSS 
   at the moment, but trying to combat having to empty cache a couple of times a
   week
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/unchecking-aggregate-inline-css-breaks-site/#post-14709931)
 * have a look at the inline CSS and try to exclude only that which has random-looking
   strings in the selectors, that way you can keep “also aggregate inline CSS” while(
   hopefully) keeping cache size under control?
 *  Thread Starter [Marconi661](https://wordpress.org/support/users/marconi661/)
 * (@marconi661)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/unchecking-aggregate-inline-css-breaks-site/#post-14709980)
 * Okay thanks, I’ll look into that. For future reference, is there a way of disabling
   this option (or even the plugin entirely) without taking CSS out of order or 
   getting overwritten?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/unchecking-aggregate-inline-css-breaks-site/#post-14710029)
 * no, afraid the only way to ensure correct order is either to aggregate all (so
   incl. inline) OR not to aggregate at all. generally the issue with things being
   overwritten can be worked around with some small tweaks to the CSS though, so
   that could also be an option?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/unchecking-aggregate-inline-css-breaks-site/#post-14779298)
 * were you able to find the right inline CSS to exclude marconi661 ?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/unchecking-aggregate-inline-css-breaks-site/#post-14833166)
 * No feedback so I assume you were able to indentify what needed to be excluded?
   Feel free to follow up if you still encounter issues!
 * have a nice day!
    frank

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

The topic ‘Unchecking ‘Aggregate inline CSS’ breaks site’ 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/)

 * 7 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/unchecking-aggregate-inline-css-breaks-site/#post-14833166)
 * Status: resolved