Title: Remove CSS warning on Theme Editor
Last modified: November 16, 2017

---

# Remove CSS warning on Theme Editor

 *  Resolved [dubird](https://wordpress.org/support/users/dubird/)
 * (@dubird)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/remove-css-warning-on-theme-editor/)
 * So, is there a way to disable the message on the Theme Editor for CSS? This one“
   There’s no need to change your CSS here — you can edit and live preview CSS changes
   in the built-in CSS editor.”
 * I understand why it’s there, but there’s no way to dismiss it.

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

 *  [lankaster](https://wordpress.org/support/users/lankaster/)
 * (@lankaster)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/remove-css-warning-on-theme-editor/#post-9689861)
 * Maby just display: none for it ?
 *  Thread Starter [dubird](https://wordpress.org/support/users/dubird/)
 * (@dubird)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/remove-css-warning-on-theme-editor/#post-9690068)
 * It’s not part of the CSS for the theme I’m working on, it’s part of the admin
   theme, I’d rather not mess around with that.
 * I can’t attach an image, here’s the link to the screenshot of what I’m talking
   about.
    [http://www.dubird.net/sigs/css_admin.jpg](http://www.dubird.net/sigs/css_admin.jpg)
 *  [twcfan92](https://wordpress.org/support/users/twcfan92/)
 * (@twcfan92)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/remove-css-warning-on-theme-editor/#post-9694314)
 * This worked for me. Add it to your theme’s functions.php file.
 *     ```
       add_action('admin_head', 'removeMessage');
   
       function removeMessage()
       {
           echo <<<EOF
       <style>
       #message
       {
           display: none;
       }
       </style>
       EOF;
       }
       ```
   
 *  Thread Starter [dubird](https://wordpress.org/support/users/dubird/)
 * (@dubird)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/remove-css-warning-on-theme-editor/#post-9710388)
 * Awesome, thanks!
 *  Thread Starter [dubird](https://wordpress.org/support/users/dubird/)
 * (@dubird)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/remove-css-warning-on-theme-editor/#post-9710396)
 * It does work for me too, thanks!.
 *  [memerick](https://wordpress.org/support/users/memerick/)
 * (@memerick)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/remove-css-warning-on-theme-editor/#post-9801062)
 * I could not get the code to work using EOF, but was successful with the following:
 *     ```
       //HIDE CSS Message
       function removeMessage() 
       {
       echo '<style>  #message  {  display: none; }  </style> ';
       }
       add_action('admin_head', 'removeMessage');
       ```
   

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

The topic ‘Remove CSS warning on Theme Editor’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 4 participants
 * Last reply from: [memerick](https://wordpress.org/support/users/memerick/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/remove-css-warning-on-theme-editor/#post-9801062)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
