Title: Optimizing (CSS) breaks wordpress admin bar
Last modified: January 13, 2021

---

# Optimizing (CSS) breaks wordpress admin bar

 *  Resolved [fencrux](https://wordpress.org/support/users/fencrux/)
 * (@fencrux)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/optimizing-css-breaks-wordpress-admin-bar/)
 * Hi,
 * I really like this plugin and the Async javascript ‘companion’ plugin. When I
   turn on the CSS optimization in the settings, the wordpress admin bar breaks.
   Normally it’s folded into a small black bar at the top of the screen. However,
   if you turn the CSS optimization on and then view the website, the content of
   the admin bar spills out in a list and isn’t hidden, creating a long and unclear
   list.
 * I’ve tried turning off various things (as I first suspected it was an issue with
   Async Javascript) but nothing solves the problem other than turning off optimizing
   the CSS.
 * Has anyone else had this experience? How can I solve this?

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/optimizing-css-breaks-wordpress-admin-bar/#post-13902886)
 * Hey fencrux ;
    What do you have in the CSS optimization exclusion field at the
   moment?
 * frank
 *  Thread Starter [fencrux](https://wordpress.org/support/users/fencrux/)
 * (@fencrux)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/optimizing-css-breaks-wordpress-admin-bar/#post-13902925)
 * Hi,
 * Thanks for replying. I currently have the following in the exclusion field:
 * wp-content/cache/, wp-content/uploads/, admin-bar.min.css, dashicons.min.css
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/optimizing-css-breaks-wordpress-admin-bar/#post-13903037)
 * OK, so what happens if you have “Optimize CSS” on but “Aggregate CSS” and/ or“
   Also aggregate inline CSS” off?
 *  Thread Starter [fencrux](https://wordpress.org/support/users/fencrux/)
 * (@fencrux)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/optimizing-css-breaks-wordpress-admin-bar/#post-13903099)
 * This seems to work for now! Last time it broke after viewing a few pages, but
   this time it hasn’t, even after viewing a few different pages. Thank you!
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/optimizing-css-breaks-wordpress-admin-bar/#post-13903136)
 * Great 🙂
 * Which of the 2 options helped?
 *  Thread Starter [fencrux](https://wordpress.org/support/users/fencrux/)
 * (@fencrux)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/optimizing-css-breaks-wordpress-admin-bar/#post-13903151)
 * I turned off ‘aggregate CSS’, which disabled the ‘also aggregate inline CSS’ 
   but I unchecked that too. Would you like me to play with those settings a bit
   to see which works?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/optimizing-css-breaks-wordpress-admin-bar/#post-13903158)
 * Your choice entirely, but *I* would indeed test further to have the smallest 
   possible change in settings 😉
 *  Thread Starter [fencrux](https://wordpress.org/support/users/fencrux/)
 * (@fencrux)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/optimizing-css-breaks-wordpress-admin-bar/#post-13903161)
 * Haha fair. Thanks for your feedback, I’ll mark as solved!
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/optimizing-css-breaks-wordpress-admin-bar/#post-13903175)
 * you’re welcome, feel free to [leave a review of the plugin and support here](https://wordpress.org/support/plugin/autoptimize/reviews/#new-post)!
   🙂

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

The topic ‘Optimizing (CSS) breaks wordpress admin bar’ 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/)

 * 9 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/optimizing-css-breaks-wordpress-admin-bar/#post-13903175)
 * Status: resolved