The source code does not include the file name ... bloginfo ('stylesheet_url') returns a link to your stylesheet URL ..., usually in the theme folder. You also need to add the folder (if any) and filename.css
Remember to always code WordPress standards. Linking to a stylesheet is not best practice. This ensures proper caching and efficiency and is simplified over the long term.
From the free 300-page book I read last weekend - WordPress AJAX, page 53:
// load styles + conditionally load an IE 7 stylesheet add_action('init', 'my_theme_register_styles'); function my_theme_register_styles() { //Register styles for later use wp_register_style('my_theme_style1', get_stylesheet_directory_uri() . '/style1.css', array(), '1.0', 'all'); wp_register_style('my_theme_style2', get_stylesheet_directory_uri() . '/style2.css', array('my_theme_style1'), '1.0', 'all'); wp_register_style('my_theme_style3', get_stylesheet_directory_uri() . '/style3.css', array('my_theme_style1', 'my_theme_style2'), '1.0', 'all'); global $wp_styles; $wp_styles->add_data( 'my_theme_style3', 'conditional', 'lte IE 7' ); }
Put this in your functions.php file or your header.php. It correctly conditionally loads the stylesheet for IE ...
source share