Thursday 18 September 2014

add and Remove Js In magento

hello All,

remove js in magento change in  your loca.xml file

if not exit then create local,xml file in your theme layout folder.




if  remove skin js from js floder in theme. 

if you want remove js in your theme check below instruction. 

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

if you want add js in your theme check below instruction. 

<action method="addItem">
                <type>skin_js</type>
                <name>js/Yourjsnam</name>
            </action>

<reference name="head"> means it added js in header in your theme.




 
if  remove  js from theme in theme.
<reference name="head">
      <action method="removeItem">
 <type>js</type><name>js/Yourjsname</name></action>
   </reference>

No comments:

Post a Comment

Thank You For Comment