Magento Expert Forum - Improve your Magento experience
-
How To Add JS File in Frontend for All Pages in Magento 2
A time saver method to add JS file in frontend for all pages in Magento 2 for the admin!
Visit https://meetanshi.com/blog/add-js-fi...-in-magento-2/ for this easy trick!
View more threads in the same category:
Last edited by MeetanshiInc; 17-04-2020 at 07:02 AM.
-
-
Assuming your script is located in <module_root>/view/frontend/web/script.js , the simplest way to add a script to all pages and all themes you can create a module containing <module_root>/view/frontend/layout/default.xml file.
-
-
Junior Member
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks