There may come a time when you need to make some changes to the way in which the WordPress Dashboard looks, maybe you want a specific style of button, maybe you want to change the colours of some of the elements on the page or maybe you want to hide some unused Meta Boxes within the dashboard? Whatever you need this snippet for here’s how to do it, simply add the code below to your functions file and add the relevant CSS within your admin.css file.
// ADMIN CSS
function load_custom_wp_admin_style() {
wp_register_style( 'custom_wp_admin_css', get_template_directory_uri() . '/css/admin.css', false, '1.0.0' );
wp_enqueue_style( 'custom_wp_admin_css' );
}
add_action( 'admin_enqueue_scripts', 'load_custom_wp_admin_style' );