The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] html instead of doctype in IE (4 posts)

  1. gprego
    Posted 5 years ago #

    Hi, i'm working on theme but i'm having a problem with the Doctype.
    In firefox the doctype is just fine. But in IE8 instead of the doctype I have <html sizecache="0" sizset="0">. And the doctype is inside the body. You can check it if you use firebug and the explorer developer tools on this site
    It's strange because in header.php the first thing is the doctype. And this come with huge problems in explorer.
    Any help will be very appreciated since i don't have a clue on how to solve it.

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    It's strange because in header.php the first thing is the doctype.

    It isn't the first thing on the page. There's a leading blank line. Have you tried:

    - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the Twenty Ten theme to rule out any theme-specific problems.

  3. gprego
    Posted 5 years ago #

    thanks for your reply.
    I did the following:
    - Switch to the Twenty Ten and it works ok (so it's something on my theme)
    - Deactivating all plugins (and the problem persists)
    - And finally replace my theme header.php and index.php with the TwentyTen files (and the problem is the same)

    Do you have another suggestion??
    I'm really lost

  4. gprego
    Posted 5 years ago #

    Ok, I still don't know what was the problem but I was able to fix it.
    What I did was to copy the Twenty Ten theme and then replace all files with my files.
    It doesn't make much sense. But now it's working.

Topic Closed

This topic has been closed to new replies.

About this Topic