Skip to content

Loading JavaScript

Brian McCoy edited this page Feb 23, 2018 · 4 revisions
  • Inside your theme open /app/assets/js-assets.php
  • Add a load_js() call. The first parameter is the URL to the JS file. The second optional parameter is an array of arguments. See arguments.
  • If handle is not defined as an arg the URL parameter will be used.
  • If ver is not defined as an arg the theme version will be used.

Clone this wiki locally