I have some custom JS that I want to be able to use on all pages. How do I achieve this? I tried adding some of the script to one of the default JS files in my sprinkle’s assets, but to no avail.
Help please!
I have some custom JS that I want to be able to use on all pages. How do I achieve this? I tried adding some of the script to one of the default JS files in my sprinkle’s assets, but to no avail.
Help please!
Got it. Edited base.html.twig and added my JS to the header. Love UF!!
Just sticking this here for reference: https://learn.userfrosting.com/asset-management/asset-bundles#template-blocks-for-bundles