Just a really quick post about how I add my own stylesheet to the WordPress admin or dashboard screens. This is a great as it enables me to then customise the CSS in the admin side of WordPress. The code below goes into functions.php and then I make sure that the stylesheet exists in a CSS folder of my theme:

// custom admin head stylesheet
    function pj_admin_head_styles() {
        echo '<link rel="stylesheet" type="text/css" href="' . get_template_directory_uri() . '/css/admin-style.css" />';
    }
    add_action('admin_head', 'pj_admin_head_styles');

Adding Your Own Stylesheet to the WordPress Admin

Remove Dashboard Menus for Specific Users

For a while now I have been using some simple code to remove the dashboard menus in WordPress, primarily so that clients can’t change certain settings and ‘break’ their sites. However the code I was using also removed those items for me too. This meant I had to memorise the admin URLs and visit them manually which is not ideal. Today I have managed to solve this problem by hiding WordPress dashboard menus for all except specified users.