Title: remove empty variable of css
Last modified: April 23, 2022

---

# remove empty variable of css

 *  Resolved [Insect Trojan](https://wordpress.org/support/users/insecttrojan/)
 * (@insecttrojan)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/remove-empty-variable-of-css/)
 * hello i need your help how can i remove of empty css that prints of php but they
   dont have an number of px they are like that
 * `font-size:; color:; line-height:; font-weight:; font-style:;`
 * with php code i am trying to remive that in the past autoptimize was removed 
   that automatically but not after updates
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fremove-empty-variable-of-css%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/remove-empty-variable-of-css/#post-15584877)
 * AO 3.0.0 minified inline CSS, but it caused some issues so that was disabled 
   for now. you can re-enable with this filter though;
 *     ```
       add_filter( 'autoptimize_html_minify_inline_js_css', '__return_true');
       ```
   
 * have a nice weekend! 🙂
    frank
 *  Thread Starter [Insect Trojan](https://wordpress.org/support/users/insecttrojan/)
 * (@insecttrojan)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/remove-empty-variable-of-css/#post-15584889)
 * thanks a lot but something is going wrong and it is not works 🙁 its not removed
   its still there do i need also enable Also aggregate inline CSS?
 *  Thread Starter [Insect Trojan](https://wordpress.org/support/users/insecttrojan/)
 * (@insecttrojan)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/remove-empty-variable-of-css/#post-15621016)
 * hello any thoughts why the add_filter is not working ? thanks

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

The topic ‘remove empty variable of 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: [Insect Trojan](https://wordpress.org/support/users/insecttrojan/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/remove-empty-variable-of-css/#post-15621016)
 * Status: resolved