Title: jQuery Errors
Last modified: December 2, 2020

---

# jQuery Errors

 *  [aetchells](https://wordpress.org/support/users/aetchells/)
 * (@aetchells)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/jquery-errors-10/)
 * Started with a clean WordPress install of version 5.5.3 and LocateAndFilter with
   the Twenty Twenty theme. Maps and Nav Lists were not displaying. Checking the
   Console I see an error “Uncaught ReferenceError: jQuery is not defined.”
    If 
   I use an older theme, Twenty Seventeen for instance, the map and navlist shows
   up.
 * If I am logged in and install WordPress’ Enable jQuery Migrate Helper plugin 
   and get some more information, namely, jQuery.fn.load() is deprecated. While 
   logged in with this plugin running, the maps and nav lists are displayed. Additionally,
   the maps and nav lists display when I am looking at the Customize screens in 
   the WordPress backend.
 * It feels like there is some jQuery piece loading as part of the Customize pages
   plus in older themes that isn’t in Twenty Twenty. Is there a way to get this 
   working with modern themes like Twenty Twenty?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjquery-errors-10%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [aetchells](https://wordpress.org/support/users/aetchells/)
 * (@aetchells)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/jquery-errors-10/#post-13736309)
 * With the help of this [WordPress forum post](https://wordpress.org/support/topic/console-warning-jqmigrate-jquery-fn-load-is-deprecated/)
   I updated class-locate-and-filter.php in two places with the new `jQuery(window).
   on('load',function () {` lines.
 * That eliminated the deprecated error but I still am getting the jQuery is not
   defined error. Any help would be appreciated.
 *  Thread Starter [aetchells](https://wordpress.org/support/users/aetchells/)
 * (@aetchells)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/jquery-errors-10/#post-13736501)
 * I added `wp_enqueue_script( 'jquery' );` to the Twenty Twenty theme’s function.
   php under, `function twentytwenty_register_scripts()`.
 * And with that, maps began working while logged in and logged out.
 * Hopefully this is of help to anyone who gets similarly stuck.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘jQuery Errors’ is closed to new replies.

 * ![](https://ps.w.org/locateandfilter/assets/icon-128x128.png?rev=2050267)
 * [LocateAndFilter](https://wordpress.org/plugins/locateandfilter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/locateandfilter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/locateandfilter/)
 * [Active Topics](https://wordpress.org/support/plugin/locateandfilter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/locateandfilter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/locateandfilter/reviews/)

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)
 * [Themes](https://wordpress.org/support/topic-tag/themes/)
 * [twenty twenty](https://wordpress.org/support/topic-tag/twenty-twenty/)

 * 2 replies
 * 1 participant
 * Last reply from: [aetchells](https://wordpress.org/support/users/aetchells/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/jquery-errors-10/#post-13736501)
 * Status: not resolved