Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BoweFrankema/4097799 to your computer and use it in GitHub Desktop.
Save BoweFrankema/4097799 to your computer and use it in GitHub Desktop.
Enqueque a script anywhere on the front end through infinity.ini
[script]
;name script and location to path relative to theme folder
my-custom-js = "assets/js/my-custom-js"
[script_conditions]
;enqueue this script anywhere except the admin
is_not_admin = "my-custom-js"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment