Why is style.css not being enqueued?
I got a pretty basic theme and just found out my style.css file doesn't get loaded into the head
. I already searched around but can't find out, why it's not loading.
I inspected the global $wp_styles
object already but couldn't find anything:
function style_test()
{
$wp_styles = new WP_Styles();
echo 'pre';
// $wp_styles-enqueue == completely empty
print_r( $wp_styles-registered );
echo '/pre';
}
add_action( 'wp_print_scripts', 'style_test', 0 );
Inside the object i also can't find my registered/enqueued stylesheets (they get loaded), so i guess i'm doing something wrong on inspecting this too. Any ideas?
Note:
If i enqueue it manually, my style.css file get's loaded. Just the automatic loading doesn't work. Further more i can access the file with get_theme_data( TEMPLATEPATH.'/style.css' );
without a problem.
Topic wp-enqueue-style wp-register-style css Wordpress
Category Web