You are viewing an old revision of this post, from November 3, 2015 @ 17:27:31. 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

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

November 3, 2015 @ 17:27:31Current Revision
Title
Deleted: How to remove all the different CSS and JS in skin or js folder  Added: How to remove all the different CSS and JS in skin or js folder by XML

Note: Spaces may be added to comparison text to allow better line wrapping.

No comments yet.

Leave a Reply