Below is a snippet from page.xml
...
<action method="addItem"><type>skin_js</type><name>js/slideshow.js</name></action>
<action method="addItem"><type>skin_js</type><name>js/lib/imagesloaded.js</name></action>
<action method="addLinkRel"><rel>stylesheet</rel><href>//fonts.googleapis.com/css?family=Raleway:300,400,500,700,600</href></action>
<action method="addItem"><type>skin_js</type><name>js/minicart.js</name></action>
<!-- Add stylesheets with no media queries for use in IE 8 and below -->
<action method="addItem"><type>skin_css</type><name>css/styles-ie8.css</name><params/><if><![CDATA[ (lte IE 8) & (!IEMobile)]]></if></action>
<action method="addItem"><type>skin_css</type><name>css/madisonisland-ie8.css</name><params/><if><![CDATA[ (lte IE 8) & (!IEMobile)]]></if></action>
<!-- #################################################################################-->
<!-- Add stylesheets with media queries for use by modern browsers -->
<action method="addItem"><type>skin_css</type><name>css/styles.css</name><params/><if><![CDATA[<!--[if (gte IE 9) | (IEMobile)]><!-->]]></if></action>
<action method="addItem"><type>skin_css</type><name>css/madisonisland.css</name><params/><if><![CDATA[<!--[if (gte IE 9) | (IEMobile)]><!-->]]></if></action>
<!-- Sets viewport meta tag using text block -->
<block type="core/text" name="head.viewport">
<action method="setText"><text><![CDATA[<meta name="viewport" content="initial-scale=1.0, width=device-width" />]]> </text></action>
</block>
This is the default Magento 1.9 RWD page.xml
.
Everything above the line of hashes ###
is being loaded in the <head>
.
Everything below the line of hashes ###
is being loaded in the <body>
.
Despite all these calls included within the same block, it is breaking somehow, half way through - the block starts with:-
<default translate="label" module="page">
<label>All Pages</label>
<block type="page/html" name="root" output="toHtml" template="page/3columns.phtml">
<block type="page/html_head" name="head" as="head">
Rendered in the browser at the frontend at the very top of the page, but just inside the opening <body>
is ]>
which I believe does indicate there is possibly some sort of syntax error with one of the [CDATA
references although I can't see an issue anywhere - it is exactly the same file as the 1.9 RWD Magento demo and that doesn't have the issue.
Two hours on trying to get to the bottom of this and I'm now beginning to pull my hair out.
Any ideas?
Edit
I thought it clear, but evidently not.
The line of hashes ###
is not actually in the file. I just added this into my question to show you where the split occurs (i.e - everything above in the <head>
and everything below in the <body>
.