You are viewing an old revision of this post, from November 3, 2015 @ 17:27:39. See below for differences between this version and the current revision.

How to remove all the different CSS and JS in skin or js folder by XML

How to remove all the different CSS and JS in skin or js folder?
------------------------------
Here is what you need to do:


<reference name="head">
    <!-- For a JS in the js folder -->
    <action method="removeItem"><type>js</type><name>functions.js</name></action>
    <!-- For a JS in the skin folder -->
    <action method="removeItem"><type>skin_js</type><name>functions.js</name></action>
    <!-- For CSS in the skin folder -->
    <action method="removeItem"><type>skin_css</type><name>local.css</name></action>
    <!-- For CSS in the js folder -->
    <action method="removeItem"><type>js_css</type><name>local.css</name></action>
</reference>

Revisions

Revision Differences

There are no differences between the November 3, 2015 @ 17:27:39 revision and the current revision. (Maybe only post meta information was changed.)

No comments yet.

Leave a Reply