Wordpress wpadminbar not setting up its style
I 开发者_运维知识库am currently working on a wordpress theme and I have a little problem in my page.
The wpadminbar element is not setting up its style. I have no idea why it is, but it is.
Screen shot:
I had the same problem and added this to the header template:
<?php
/* Always have wp_head() just before the closing </head>
* tag of your theme, or you will break many plugins, which
* generally use this hook to add elements to <head> such
* as styles, scripts, and meta tags.
*/
wp_head();
?></head>
Have you done any debugging with Firebug (a Firefox plugin)? Which styles does your page load?
From a screenshot this one is a bit hard to solve.
First guess: you forgot to add the link to the main WP CSS (called admin-bar.css) in your theme's header.
Have you tried using firebug on it to find where the CSS file is? If it's on the server it's time to narrow it down in the CSS.
Check if you have wp_deregister_style('open-sans'); in your theme it can be the reason of this!
精彩评论