Support » Developing with WordPress » Can’t customize WP admin bar

  • Resolved antoinemayer

    (@antoinemayer)



    I have a child theme with style.css stylesheet in it but I can’t edit the appearance of the WP admin bar using it. It doesn’t even work using the !important tag. For example:

    #wpadminbar { height:64px !important; }

    How can I edit my WP admin bar using CSS through my child theme’s style.css stylesheet?

    Thanks a lot.

    • This topic was modified 1 year, 9 months ago by  antoinemayer.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The backend is not controlled by the theme’s css

    I have tried the selector #wpadminbar on the default twentysixteen theme and it works! Maybe you could clean your browser cache and try again or check the css code in the develop mode of your browser to make sure it has really replaced the old ones.

    Moderator bcworkz

    (@bcworkz)

    Don’t rely on style.css, enqueue an admin specific stylesheet. See Creating Admin Themes. The same thing should work in your theme’s functions.php as in the suggested plugin.

    Hi there and thanks for your answers!

    I’ve come to solve this by adding the “!important” tag in my style.css rules 🙂

    Solved!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can’t customize WP admin bar’ is closed to new replies.