Default Template not linking to Stylesheet in IE 7 or 8?
-
I’m just about done with my site, but am running into an IE compatibility issue. I know shocker right. No problems in Firefox, Opera, Safari or Chrome. Ugg…sigh.
Anyways it appears that in IE 7 and 8 my site is not pulling my stylesheet at all. It was working before when I was developing on my subdomain, but I’ve since added some conditional code depending on what page you’re on. See below.
<?php if( comments_open() ) :?> <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/blog.css" media="screen" type="text/css" /> <?php elseif ( is_page_template('homepage-page-template.php') ) :?> <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/home.css" media="screen" type="text/css" /> <?php elseif ( is_page() ) :?> <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/style.css" media="screen" type="text/css" /> <?php endif;?>
This pulls different stylesheets depending on what page you’re on. That being said I think that might be my issue. I jsut don’t know how to fix it. Any ideas?
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Default Template not linking to Stylesheet in IE 7 or 8?’ is closed to new replies.