Timeline for How to add JS file to all pages in Magento
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 12, 2016 at 2:46 | comment | added | undone | OK I'll try that and will let you know what happens. | |
Jul 11, 2016 at 23:02 | comment | added | Ledian Hymetllari |
Add the JS file somewhere into js folder and paste the following code to your XML layout file on your module <default> <reference name="head"> <action method="addJs"><script>folder/file.js</script></action> </reference> </default>
|
|
Jul 10, 2016 at 12:08 | comment | added | Ledian Hymetllari | I thought to copy page.xml to your theme. You can add javascript to your layout file of your module. Reference to your root xml block then add js | |
Jul 10, 2016 at 11:27 | comment | added | undone | I can't edit that file. I need a way to add javascript without editing core files. I have to give this module to my customers, so adding or editing core files is NOT an option. I'll look for a way to override or extend that file. Thanks. | |
Jul 9, 2016 at 23:05 | review | Low quality posts | |||
Jul 10, 2016 at 7:53 | |||||
Jul 9, 2016 at 22:47 | history | answered | Ledian Hymetllari | CC BY-SA 3.0 |