• Hi –
    I’ve just finishing up a theme, and am having a few problems with IE 6/7. Mostly with padding issues so to correct these I am writing a separate style sheet for the ‘problem’ browsers.

    Funny thing is – when I add my conditional comments to the header.php file of my theme, they do not appear in the source code once rendered in the browser. It seems like the header for these pages is being pulled from somewhere else (since no other comment/code addition displays either). Is this possible? Kind of at my wits’s end with this…hope someone can help.

    P.s. I’ve done this in the past with no issues…the only plug-in I have installed is the All-in-one SEO pack which I know does write to the header. But this shouldn’t be the isssue. Thanks!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi

    As a test, add something to the header that is not a comment (a style block or something) and refresh your page. It sounds like the header file you think is running may not be the one that is running. If the new content you added appears in the header, then you are correct. If it doesn’t, you need to find what header file is actually being executed, and why.

    Thread Starter sivarts

    (@sivarts)

    Thanks, stvwlf –

    What I learned here is that when you are facing a problem that you can’t figure out – it’s best to put it away for awhile.

    My issue was that some of my template files have their headers inline rather than calling the include (how embarrassing…)

    Thanks for responding.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘IE Conditional comments stripped out of header.php’ is closed to new replies.