Add custom javascript to all pages on your theme

Use custom javascript The best solution to add custom javascript to all pages of your website is to create a javascript module and load it via requireJS. This can be done by creating a requirejs-config.js file in your theme folder with the following content: This file tells requireJS to load a custom.js file located in folder Theme_Vendor/Theme_Name/web/js. Include in that[…]

Read more