Support » Fixing WordPress » 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.


Viewing 2 replies - 1 through 2 (of 2 total)
  • OK I found this.

    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.

    You have to add this code bellow, for example:

    [please read for posting code]

    function my_wp_admin_css() {
     echo '<link rel="stylesheet" type="text/css" href="' .get_bloginfo('template_url').'/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.