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>
user1799722
  • 970
  • 3
  • 31
  • 77

1 Answers1

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();

Amit Bera
  • 77,456
  • 20
  • 123
  • 237