Title: inline css
Last modified: December 14, 2020

---

# inline css

 *  Resolved [damink2](https://wordpress.org/support/users/damink2/)
 * (@damink2)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/inline-css-15/)
 * Hi and please help!
 * I’ve tried minifying css, but looking at the source code I see a huge chunk of
   inline css to get rid of and don’t know how. It begins with <style type=”text/
   css” id=”wp-custom-css”> There is also a large piece of css beginning with <style
   type=”text/css” media=”all”> earlier in the <head> tag. The first time I ran 
   the minifier I accidentally used the “use inline css” option, but restored my
   backup and restarted the minifier in case this was the cause. There are a couple
   of js files in the <head> also I would like to have as file calls instead of 
   the full code.
 * How can I do this with your plugin? Thanks greatly.
 * Damink

Viewing 1 replies (of 1 total)

 *  [Marc Lacroix](https://wordpress.org/support/users/marcusig/)
 * (@marcusig)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/inline-css-15/#post-13790663)
 * Hi Damink,
 * > I accidentally used the “use inline css” option, but restored my backup and
   > restarted the minifier in case this was the cause.
 * Minify is a feature which you can just turn on or off, with no need to restore
   backups, as it doesn’t affect your website’s data, but rather compiles the assets.
   So disabling “inline css” and saving should have been enough.
 * The first inline style `<style type=”text/css” id=”wp-custom-css”>` is likely
   the CSS which is added in the theme customizer.
    The rest of inline styles are
   probably added by plugins.
 * Inline styles like these aren’t a bad thing, and are actually better than an 
   external file in some cases, as they avoid an extra request to the server, which
   costs time.
 * Marc.

Viewing 1 replies (of 1 total)

The topic ‘inline css’ is closed to new replies.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Marc Lacroix](https://wordpress.org/support/users/marcusig/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/inline-css-15/#post-13790663)
 * Status: resolved