I'm developing a Wordpress custom theme using the child-theme of Understrap.
I'm adding my custom jQuery to child-theme > src > js > custom-javascript.js, and the file is already commented with "// Add your custom JS here." .js
I did this as instructed from the Understrap Documentation:
"Add your own JS to /src/js/custom-javascript.js to have them bundled into /js/child-theme.js."
I've run the script in the console, and it works as intended, so the error is not with my script.
Yes, I have tried clearing my cache.
I've seen a few other questions related to needing to update a gulpfile.js, but no such file is included in my child OR parent theme, I have used the search function, and I also cannot find it on the Understrap GitHub repo.
Is the script not enqueuing properly? Have I missed something?
Thanks in advance.
EDIT: RESOLVED Was unable to find the source of the error. Ended up doing a fresh install of the Understrap child theme, and migrating my custom files over. This eventually resolved my problem and the JavaScript started working again.