Magento Removes CSS or JS from Specific View

The way to remove css or js from the view with "removeItem" tag attribute

Posted on April 5, 2016 in Magento

For a JS in the main JS folder:


<reference name="head">
    <action method="removeItem"><type>js</type><name>functions.js</name></action>
</reference>

For a JS in the skin folder:


<reference name="head">
    <action method="removeItem"><type>skin_js</type><name>functions.js</name></action>
</reference>

For CSS in the skin folder:


<reference name="head">
    <action name="removeItem"><type>skin_css</type><name>local.css</name></action>
</reference>


comments powered by Disqus