Linking custom JS code for use on all pages?


#1

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! :slight_smile:


#2

Got it. Edited base.html.twig and added my JS to the header. Love UF!! :smiley:


#3

Just sticking this here for reference: https://learn.userfrosting.com/asset-management/asset-bundles#template-blocks-for-bundles