Add custom css to WordPress Admin panel

Not sure if you’ve noticed it or not, I’m a huge fan of Font Family “Lucida Grande” and really wanted my wordpress admin dashboard to have this font family instead of the current ones.

Well achieving this is fairly simple. Either if you want to change the font family of wordpress admin backend or to add any custom css to the dashboard you can do this by using the following steps (adjust custom code according to your requirements)

How to change font family to lucida grande in WordPress admin dashboard

Nothing exhaustive, just add this piece of code to your current themes function.php file

function custom_font() {
   echo '<style type="text/css">
           body,td{font-family:lucida grande;}
         </style>';
}

add_action('admin_head', 'custom_font');

Save, Done, Check and confirm.

Sorry to disappoint, it was really that simple :)

Leave a Reply

Your email address will not be published.