Add custom CSS to WordPress Admin without a plugin

Do you want to style the WordPress Admin area without modifying WordPress core CSS files?

So did we. Hacking WordPress core files is bad, because the hacks would be overwritten on the next WP update. (Son of a…!) But by placing this snippet in your theme’s functions.php file, these rules will stay intact on each WordPress update. Niceness.

add_action('admin_head', 'super_awesome_css');
    function super_awesome_css() {
      echo '<style>
        .your-css-selector { max-width: none; }


No Comments

Leave a Reply

To include code, just include it in [code] [/code] square brackets. Sweet.