Title: Optimizing CSS not working
Last modified: April 14, 2018

---

# Optimizing CSS not working

 *  Resolved [Aljook](https://wordpress.org/support/users/aljook/)
 * (@aljook)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/optimizing-css-not-working/)
 * Hello,
 * I am having issues with custom css being applied (button background gradient),
   while Autoptimize (namely the “optimize CSS” option) is enabled. I have CDN enabled
   on my host’s side as well. In Autopimize settings I added the CDN base url. Now,
   every other optimization works as it should. But the CSS is not applied and it
   uses some old/base CSS. If I remove the base URL, the whole element goes missing
   after showing briefly. It seems like the Autoptimize CSS file stored in the CDN
   isn’t being cleared. I tried clearing Autoptimize cache, the host’s cache, disabling
   the CDN and removing and adding back the CSS to Additional CSS in the customizer
   but nothing seems to work.
 * I got it showing properly after removing the CSS optimization, but it would be
   awesome if you could help somehow.
 * Cheers,
 * Alo

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/optimizing-css-not-working/#post-10180745)
 * Assuming the custom css is added inline, you could try unticking “also aggregate
   inline CSS”?
 *  Thread Starter [Aljook](https://wordpress.org/support/users/aljook/)
 * (@aljook)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/optimizing-css-not-working/#post-10183845)
 * Hmm, I’m not sure whether its added inline or not (sorry, technical, but not 
   that technical). I added the CSS in the customizer.
 * I tried unticking the aggregate tick though, but it didn’t work.
 * At first even just enabling the plugin borked things up. But now, after a day,
   everything seems fine. So I guess it was some kind of a cache expiring issue.
 * Thanks!
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/optimizing-css-not-working/#post-10183963)
 * So all is fine now? If not; feel free to share your URL so I can have a quick
   look 🙂
 * frank
 *  Thread Starter [Aljook](https://wordpress.org/support/users/aljook/)
 * (@aljook)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/optimizing-css-not-working/#post-10183984)
 * Yup, seems to be. Thanks for being so forthcoming though 🙂
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/optimizing-css-not-working/#post-10184625)
 * OK, marking as resolved 🙂
 * have a nice day!
    frank

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

The topic ‘Optimizing CSS not working’ 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/)

 * 5 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/optimizing-css-not-working/#post-10184625)
 * Status: resolved