Title: wp_admin_css
Last modified: August 19, 2016

---

# wp_admin_css

 *  [niccol](https://wordpress.org/support/users/niccol/)
 * (@niccol)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/wp_admin_css/)
 * has anyone got wp_admin_css to work the way it is described in the codex?
 * For instance in ‘Creating Admin Themes’. There are a lot of posts saying it doesn’t
   work but not many saying that it does. I guess not many people post just to say
   that it works though….
 * I got round the issue by using login_head instead but wp_admin_css would be more
   elegant.
 * Anyone?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [niccol](https://wordpress.org/support/users/niccol/)
 * (@niccol)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/wp_admin_css/#post-2031359)
 * OK I found this.
 * [http://core.trac.wordpress.org/ticket/14559](http://core.trac.wordpress.org/ticket/14559)
 * That being the case perhaps we all need to change the ‘Creating Admin Themes’
   page. Happy to help with that just don’t know how to go about it.
 *  [noxion](https://wordpress.org/support/users/noxion/)
 * (@noxion)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/wp_admin_css/#post-2031531)
 * You have to add this code bellow, for example:
 * _[please read [http://codex.wordpress.org/Forum\_Welcome#Posting\_Code](http://codex.wordpress.org/Forum_Welcome#Posting_Code)
   for posting code]_
 *     ```
       function my_wp_admin_css() {
        echo '<link rel="stylesheet" type="text/css" href="' .get_bloginfo('template_url').'/wp-admin.css">';
       }
   
       add_action('wp_admin_css','my_wp_admin_css');
       apply_filters( 'wp_admin_css','my_wp_admin_css' );
       ```
   
 * Note that I’ve put the action too. I think that is something broken. So this 
   is the workaround. =)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘wp_admin_css’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [noxion](https://wordpress.org/support/users/noxion/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/wp_admin_css/#post-2031531)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
