...
...

TypeError: ‘undefined’ is not a function (evaluating ‘$(document)’) In WordPress

jQuery, Tutorials, Wordpress | 04 July 2018

Wordpress uses jQuery in noConflict mode by default. You need to reference it using jQuery as the variable name, not $.
Replace “jQuery(document);” in place of “$(document);”

View More