Title: ignore inline css
Last modified: July 12, 2023

---

# ignore inline css

 *  Resolved [gpbc](https://wordpress.org/support/users/gpbc/)
 * (@gpbc)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/ignore-inline-css-2/)
 * Hi , is there a way to mark a block of inline css ( in a php file ) , so it’ll
   get ignored by the autoptimse / critical css feature
 * It’s just that this is css that adds a page background image , so when this is
   cached by the critical css , when authors remove the image it remains on the 
   page..
 * Thankyou

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/ignore-inline-css-2/#post-16890281)
 * hmm … there’s no ignore parameter in criticalcss.com as far as I know, but what
   would work is overriding (unsetting) the background image in the critical CSS
   rule (click on “add CSS to all rules” for that) and then in critical CSS -> advanced
   options click the “unload critical CSS at page load” option to ensure that the
   background image as set in the full CSS is not hidden?
 * hope this helps,
    frank
 *  Thread Starter [gpbc](https://wordpress.org/support/users/gpbc/)
 * (@gpbc)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/ignore-inline-css-2/#post-16891824)
 * Thankyou , that’s such a good little feature as now we don’t risk criticalcss
   conflicting with our dynamic user generated content ( on full css load )
 * Cheers for that 🙂
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/ignore-inline-css-2/#post-16891835)
 * you’re welcome, feel free to [leave a review of the plugin and support here](https://wordpress.org/support/plugin/autoptimize/reviews/#new-post)!
   🙂
 * have a nice day!
    frank

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

The topic ‘ignore inline css’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/ignore-inline-css-2/#post-16891835)
 * Status: resolved