Conditional Stylesheet for Starkers.
-
Hi there.
I’m creating a theme in Starkers. All is going well so far, but I need to use a conditional stylesheet. Usually this works fine by puting something like this:<!–[if IE 7]>
<link rel=”stylesheet” src=”<?php bloginfo(‘template_directory’); ?>/style_ie7.css” type=”text/css” meia=”screen />
<![endif]–>However, it is not working on the newest version of Starkers. I’ve noticed that it there is no reference to the stylesheet in the header, well not directly, it sends it to the functions php:
<link rel=”shortcut icon” href=”<?php echo get_stylesheet_directory_uri(); ?>/img/favicon.ico”/>
In here there is a link to the CSS.
function script_enqueuer() {
wp_register_script( ‘site’, get_template_directory_uri().’/js/site.js’, array( ‘jquery’ ) );
wp_enqueue_script( ‘site’ );wp_register_style( ‘screen’, get_template_directory_uri().’/style.css’, ”, ”, ‘screen’ );
wp_enqueue_style( ‘screen’ );
}Would the conditional sheet go here?
If so does anyone know what the code should should be.Thanks in advance.
- The topic ‘Conditional Stylesheet for Starkers.’ is closed to new replies.