Enter your keyword


How to Add CSS file into Admin area

Loads a CSS file into your admin area so you can override default styles. Just add wp-admin.css into your theme folder.

// Custom CSS for the whole admin area
// Create wp-admin.css in your theme folder
function wpmy_adminCSS() {
  echo '<link rel="stylesheet" type="text/css" href="'.get_bloginfo('template_directory').'/wp-admin.css"/>';
add_action('admin_head', 'wpmy_adminCSS');

No Comments

Add your review

Your email address will not be published.

* Feilds are Required.