Kriuchko
1/9/2019 - 7:56 AM

Theme js css

Magento 1 theme js css

<action method="addItem"><type>skin_js</type><name>js/jquery-1.8.3.min.js</name></action>
                
<action method="addItem"><type>skin_js</type><name>js/jquery.main.js</name></action>

<action method="addItem"><type>skin_css</type><name>css/css3.css</name></action>
                
<action method="addItem"><type>skin_css</type><name>css/all.css</name></action>
                
<action method="addItem"><type>skin_css</type><name>css/impl.css</name></action>

<action method="addItem"><type>skin_js</type><name>js/ie.js</name><params/><if>IE</if></action>

<action method="addItem"><type>external_css</type><name>http://developer.yahoo.com/yui/build/reset/reset.css</name><params/></action>                
<action method="addItem"><type>external_js</type><name>http://yui.yahooapis.com/2.8.2r1/build/yahoo-dom-event/yahoo-dom-event.js</name><params/></action>
<action method="addExternalItem"><type>external_js</type><name>http://yui.yahooapis.com/2.8.2r1/build/imageloader/imageloader-min.js</name><params/></action>
<action method="addExternalItem"><type>external_css</type><name>http://yui.yahooapis.com/2.8.2r1/build/fonts/fonts-min.css</name><params/></action>  

<!-- add google font -->
<block type="core/text" name="google_font_cabin">
    <action method="setText"><text><![CDATA[<link href="https://fonts.googleapis.com/css?family=Cabin:400,400i,700,700i&display=swap" rel="stylesheet">]]></text></action>
</block>

---------- jQuery -------------

local.xml:

<block type="page/html_head" name="topScripts" template="additional/top_scripts.phtml" before="head">
    <action method="addItem"><type>skin_js</type><name>js/jquery-1.8.3.min.js</name></action>
    <action method="addItem"><type>skin_js</type><name>js/no-conflict.js</name></action>
    <action method="addItem"><type>skin_js</type><name>js/jquery.main.js</name></action>
</block>

additional/top_scripts.phtml:

<?php echo $this->getCssJsHtml(); ?>

page/html/head.phtml:

Поменяй местами что бы было вот так

<?php echo $this->getChildHtml() ?>
<?php echo $this->getCssJsHtml() ?>