A time saver method to add JS file in frontend for all pages in Magento 2 for the admin!
Attachment 14306
Visit https://meetanshi.com/blog/add-js-fi...-in-magento-2/ for this easy trick!
Printable View
A time saver method to add JS file in frontend for all pages in Magento 2 for the admin!
Attachment 14306
Visit https://meetanshi.com/blog/add-js-fi...-in-magento-2/ for this easy trick!
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.
Hi Friends,
Thanks for sharing helpful info.
Magento web design bangalore | website developer in bangalore | Php Web Development Company Bangalore