Title: Remove Inline css in header
Last modified: September 1, 2016

---

# Remove Inline css in header

 *  [Steve Hardaway](https://wordpress.org/support/users/stevehardaway/)
 * (@stevehardaway)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/remove-inline-css-in-header/)
 * Looking to remove inline stylesheets created by Storefront customizer. The ones
   in question are ‘storefront-style-inline-css’ and ‘storefront-woocommerce-style-
   inline-css’
 * I tried dequeueing and deregistering in my child theme functions.php. I also 
   tried using add_filter(‘storefront_customizer_css’, ‘__return_false’); but it
   still shows up in my page header.
 * What am I missing? I’m not using these styles and they’re just taking up valuable
   page load.

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

 *  [James Koster](https://wordpress.org/support/users/jameskoster/)
 * (@jameskoster)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/remove-inline-css-in-header/#post-7504367)
 * Hey Steve,
 * You are using those styles because Storefront relies on them. Removing them would
   mean you’d just have to add them to another stylesheet elsewhere meanwhile losing
   any benefits the Customizer provides.
 * If you check out the ‘weight’ of the CSS added inline I think you’ll conclude
   this isn’t worth it. We’re talking about bytes of data here.
 *  Thread Starter [Steve Hardaway](https://wordpress.org/support/users/stevehardaway/)
 * (@stevehardaway)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/remove-inline-css-in-header/#post-7504406)
 * James,
 * I should specify that I’ve added them to my styles.css file already. Are they
   that difficult to remove? Despite the fact that they don’t ‘weigh’ much, page
   speed metrics still frown on inline styles.
 * At this point, I just don’t want them there. Is that something you can help with?
 * Thanks
 *  [James Koster](https://wordpress.org/support/users/jameskoster/)
 * (@jameskoster)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/remove-inline-css-in-header/#post-7504495)
 * There isn’t a really clean way of removing it. You can use the `storefront_customizer_css`
   and `storefront_customizer_woocommerce_css` filters to return something empty.
   That’ll remove the inline css but you’ll still be querying `get_theme_mod()`.
 * At this point you’d be best off removing the Customizer altogether if you’re 
   not using it. There’s probably plugins out there to do that for you.

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

The topic ‘Remove Inline css in header’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/storefront/4.6.2/screenshot.png)
 * Storefront
 * [Support Threads](https://wordpress.org/support/theme/storefront/)
 * [Active Topics](https://wordpress.org/support/theme/storefront/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/storefront/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/storefront/reviews/)

## Tags

 * [child theme](https://wordpress.org/support/topic-tag/child-theme/)
 * [header](https://wordpress.org/support/topic-tag/header/)
 * [inline styles](https://wordpress.org/support/topic-tag/inline-styles/)

 * 3 replies
 * 2 participants
 * Last reply from: [James Koster](https://wordpress.org/support/users/jameskoster/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/remove-inline-css-in-header/#post-7504495)
 * Status: not resolved