Styling the WordPress Admin Panel

If you want to make changes to the CSS in the admin panel you can’t do it in your style sheet. You will need to create a function in your functions.php that looks like this:

add_action('admin_head', 'my_custom_fonts');

function my_custom_fonts() {
  echo '<style>
    #custom-div {
      font-family: "Lucida Grande";
      font-size: 12px;
    } 
  </style>';
}

Submit a Comment

Your email address will not be published. Required fields are marked *