WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does anyone know where admin-bar.min.css is registeded/included?

Im trying to add a slash in front of admin-bar.min.css, so the admin bar will work correctly on all pages. Im playing arround with a wordpress site with dynamicaly generated urls, and right now the admin bar is the last thing I need to fix, only I cant find it.

All help is much apriciated :)

share|improve this question
which version of wordpress you are using. I dint seen any reference to admin-bar.min.css in wordpress 3.5.1 – Amit Gupta Jun 10 '13 at 12:46
up vote 0 down vote accepted

admin-bar.min.css is not registered via the normal wp_register_style channels. It, and the other default styles, are registered by wp_default_styles, which registers them by directly manipulation the $styles object, though I don't know what good that is since there are no hooks and you shouldn't be hacking core files.

You should still be able to deregister that style and re-add it. If that doesn't work I expect that you'd need to alter the $styles object yourself.

share|improve this answer
Thanks. This helped me find what I was looking for :) saved me a bunch of time. – Oldenborg Jun 10 '13 at 14:31
grep is my very best friend. – s_ha_dum Jun 10 '13 at 14:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.