Title: Edit CSS with Autoptimize on
Last modified: October 6, 2017

---

# Edit CSS with Autoptimize on

 *  Resolved [carolineanddimitri](https://wordpress.org/support/users/carolineanddimitri/)
 * (@carolineanddimitri)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/edit-css-with-autoptimize-on/)
 * Hi Autoptimize,
 * this is a really dumb question but I couldn’t find an answer anywhere.
 * Previously my css was in file style.css. Now when I use the debugger, the source
   of css is autoptimise-123456789.css (for example). I need to edit my CSS. In 
   which file do I edit it and where do I purge the cache to check the new css?
 * So far I have edited style.css (or equivalent) and cleared cache from Autoptimize
   from the Save changes and Clear Cache button. That did not display the right 
   css.
 * I have edited the autoptimise-123456789.css file and refreshed, that didn’t work
   either. Am I missing something?
 * Thank you or your help,
    Dimitri

Viewing 1 replies (of 1 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/edit-css-with-autoptimize-on/#post-9561438)
 * Morning Dimitri;
    Changing the autoptimize_xyz.css file is not the correct way.
   Ideally you don’t edit your theme’s style.css either as you changes would get
   overwritten with every theme update. The best way would be to either [create a child theme](https://codex.wordpress.org/Child_Themes)
   or you’d use the “custom css”-feature of WordPress core (Appearance -> Customize-
   > Custom CSS) to override the theme’s CSS. These changes should automatically
   get picked up by AO.
 * Hope this helps,
    frank

Viewing 1 replies (of 1 total)

The topic ‘Edit CSS with Autoptimize on’ 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/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/edit-css-with-autoptimize-on/#post-9561438)
 * Status: resolved