I am modifying a Magento theme. And want to add a js file into the theme /js
folder. I have added the following code:
If you want to implement custom code (a .js file), please follow these steps:
From the Admin panel, go to Design > Themes Editor.
Click Customize under the theme you wish to add custom script to.
Click Java Script Editor in the left panel to manage JavaScript assets.
Click Browse Files, select the JavaScript file from your local drive, and then click Upload Files.