Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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 –  articlestack Jun 10 '13 at 12:46

1 Answer 1

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

 
discard

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.