I have created a custom widget that requires jQuery code.

I have included the js file but when I'm trying to view the changes in the frontend, I'm getting jquery error.

I tried including the file in the footer.

Still, getting jquery error. $. is undefined.

I'm using default luma theme



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.