search ]

Add Custom CSS to WordPress Admin Area

To do this, add the following code to your functions.php file and change the CSS as needed. If you want to know the right way to add assets (CSS and JS files) to the WordPress admin, take a look at the post Loading scripts correctly in the WordPress admin.

function my_custom_fonts() {
    echo '<style>
    body {
      font-size: 12px;
    } 
  </style>';
}

add_action('admin_head', 'my_custom_fonts');
Join the Discussion
0 Comments  ]

Leave a Comment

To add code, use the buttons below. For instance, click the PHP button to insert PHP code within the shortcode. If you notice any typos, please let us know!

Savvy WordPress Development official logo