Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsure how to add my own JS and correctly utilize jQuery #280

Open
ghost opened this issue Apr 21, 2017 · 0 comments
Open

Unsure how to add my own JS and correctly utilize jQuery #280

ghost opened this issue Apr 21, 2017 · 0 comments

Comments

@ghost
Copy link

ghost commented Apr 21, 2017

I find that the documentation doesn't really explain clearly how to implement jQuery into this theme as a dependency. I must be doing something wrong because it's not being included in the build JS folder.

I managed to enqueue jQuery in the functions.php file but your documentation says differently. It says to include it somehow in the gulp/config/scripts.js file, but the explanation isn't very clear.

I am also trying to add my own scripts, such as smoothState.js and that isn't being added to the JS folder either, or it throws an error thanks to eslint...

What am I doing wrong? How do I get my own scripts or import other scripts into this theme?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants