jQuery is Not Defined Issue
-
The plugin is throwing a “jQuery is not defined” error on my site. jQuery is being enqueued in the footer of my site, while the main plugin script is being enqueued in the header. There seems to be some inline script being added which uses “jQuery(document).on” and that’s the issue. I dug through the plugin and the “better-messages” script needs to set jquery as a dependency. It’s currently not doing that. I was able to use the “better_messages_register_script_dependencies” filter to fix the issue, but most others won’t know how to do this.
- This topic was modified 1 year ago by .
The topic ‘jQuery is Not Defined Issue’ is closed to new replies.