Newbier
Newbier

Reputation: 54

My style.css work for frontend, but not work in Admin area

I edit the file style.css in theme, but it just help to CSS the frontend, not work with the backend admin. How can I CSS the backend admin? Thanks

Upvotes: 1

Views: 105

Answers (1)

T-Rex
T-Rex

Reputation: 78

In your functions .php Add the flowing:

add_action('admin_head', 'my_custom_fonts');

function my_custom_fonts() {
  echo '<link rel="stylesheet" type="text/css" href="' . get_stylesheet_directory_uri() . '/style-admin.css">';
}

Upvotes: 2

Related Questions