Skip to content

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

@ghost

Description

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions