• Resolved goldmember

    (@goldmember)


    for this site, I put the following in the child-theme header file:

    <!--[if IE7]>
    <link rel="stylesheet" href="https://www.cherrydesignparters.com/wordpress/wp-content/themes/twentyten-cherry-child/ie7-style.css" type="text/css" media="screen" />

    but for some reason this stylesheet is NOT getting applied when viewing the site in IE7. any idea why not???

    please advise. thanks in advance.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You’re missing the <![endif]--> to close the conditional comment, as in

    <!--[if IE7]>
    <link rel="stylesheet" href="https://www.cherrydesignparters.com/wordpress/wp-content/themes/twentyten-cherry-child/ie7-style.css" type="text/css" media="screen" />
    <![endif]-->

    And you should be doing this

    <!--[if IE7]>
    <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/ie7-style.css" type="text/css" media="screen" />
    <![endif]-->

    so the link doesn’t break when you get rid of /wordpress/

    Thread Starter goldmember

    (@goldmember)

    oops. I did have the <![endif]--> there. Just forgot to put in this post.

    but i tried the new version that you provided and it’s still not working. please advise. thanks.

    How do you know it’s not working? Look at your page source; use Firebug with Firefox, or Chrome or Safari or IE8 developer tools to see what’s loading on your site.

    Thread Starter goldmember

    (@goldmember)

    I’m using the IE Tester program which shows you want it looks like in all different versions of IE.

    I’ve looked at it in all other browsers. it looks fine in them.

    IE Tester may not respect conditional comments. Check with the developer. Best to use native IE.

    Thread Starter goldmember

    (@goldmember)

    i’m still struggling with this. any advice? how would i install native IE7 and use it simultaneously if i already have IE8 running on my computer and need to keep that for testing as well???

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘ie7 stylesheet link not working’ is closed to new replies.