0

i want to add custom js to footer:

i am using below code in admin > category > custom design

<reference name="footer">
<action method="addJs"><script>design/fabric_with_gestures.js</script></action>
</reference>
0

1 Answer 1

0

addJs function is not working because of it only call at head and addJs() function class is Mage_Page_Html_Head.

You need call a phtml file from footer reference and on this phtml file you need call the file using $this->getSkinUrl();

1
  • ok thanks what it i want to add in last of all js Mar 20, 2015 at 13:07

Not the answer you're looking for? Browse other questions tagged or ask your own question.