Viewing 5 replies - 1 through 5 (of 5 total)
  • Today i also encountered this problem, all minified css is before the doctype declaration.

    This is no valid html and causes problems.

    Anybody wo had this problem or solved it in the meantime?

    fascinating why it would do that. I have some hypotheses on how that might happen. But for the sake of time (to get your site working)…can you add the following directive wherever you like within your header.php file (obviously anywhere after the <head> open tag):

    <!-- W3TC-include-css -->

    See if that fixes things 🙂
    I feel sorry for Erica (the OP) seeing as how she posted her similar problem 2 months ago and no one responded.

    Cheers
    Kimberly

    Thanks Kimberly, this seems to work.
    the minified css is inserted right at the place of the tag in the header.php.

    Any idea what causes this effect? I manage 30+ wordpress websites and never saw this before.

    Thanks!

    I am seeing this same issue. The minified style-sheet is inserted before the !DOCTYPE tag, creating invalid html…

    The suggested fix did work, thanks!

    AND this seems like something that shouldn’t need to be manually fixed…

    Thread Starter Erica Franz

    (@ericakfranz)

    This issue is still ongoing.

    Thanks to Kimberly for the hack to work-around the issue.

    I’d still like to see W3TC fix this bug on their end so users don’t need to hack their theme’s template files. 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Files added before doctype declaration, breaks other plugin functionality’ is closed to new replies.