$.templates is not a function

Table of Contents

The error “$.templates is not a function” occurs when a theme or another plugin tries to load a different version of jQuery on a WordPress site. This conflict arises because WordPress already includes a version of jQuery by default.

Cause #

WordPress natively includes jQuery, and it’s not recommended to inject another version. Doing so can create compatibility issues with various plugins, including our Store Locator plugin.

multiple jquery conflict

Solution #

Ensure that no other plugin or theme is loading a different version of jQuery. Stick to the version provided by WordPress to maintain compatibility and prevent conflicts.