WordPress interpreting html code strangely
-
The blog looks good, everything works. Then I took a peak at the source code the browser is using. Woooo.
The ENTIRE style sheets are printed totally out in the source code, instead of importing them via the link, wordpress has somehow instructed the browser (Firefox 4.0) to print out all 5 of the stylesheets in the header.So in the header, the first stylesheet is called like this:
<link rel="stylesheet" href="http://architekt-mm.de/style.css" type="text/css" media="screen" />
and then two more for IE like this:
<!--[if lte IE 7]><link rel="stylesheet" href="http://architekt-mm.de/library/ie.css" type="text/css" media="screen" /><![endif]-->
However, what appears in the header is something entirely different, which is, in place of <link rel=”stylesheet” href=”http://architekt-mm.de/style.css” type=”text/css” media=”screen” /> this appears:
<style media="screen" type="text/css" style="display:none">/**/@import url( ...
and then it goes on printing out all 5 stylesheets. View the source here
http://architekt-mm.deThe source code is really strange and a bit ugly. Does anyone know why this is happening, and how to fix it so the stylesheets are simply imported as usual?
thanks
JSC
- The topic ‘WordPress interpreting html code strangely’ is closed to new replies.