Want to add some custom CSS to the WordPress admin area? You can do so by adding the following snippet to your theme’s (child) functions.php file or by using the Code Snippets plugin.
// Add Custom CSS TO WP Admin
function my_custom_admin_css() {
echo '<style>
/*Add Your Styling Below This Line*/
#wpadminbar {
background: #36b560;
}
/*Add Your Styling Above This Line*/
</style>';
}
add_action('admin_head', 'my_custom_admin_css');
– LAST TESTED DECEMBER 9, 2019
Code not working? Let us know in the comments below.