A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://stackoverflow.com/questions/65389751/jquery-is-not-defined-on-wordpress-smoothstate-js below:

php - jQuery is not defined on Wordpress - smoothstate Js

I am trying to install smoothState.js to my wordpress theme. It is not working and while debugging, I am seeing this error - "jQuery is not defined". This is in the smoothState.js file I copied over.

Can anyone help me with this? Am I am installing the file incorrectly? I tried adding a (jQuery) note after the function and it's still not working. Appreciate the help! The error is for this particular function below

/*!
 * smoothState.js is jQuery plugin that progressively enhances
 * page loads to behave more like a single-page application.
 *
 * @author  Miguel Ángel Pérez   [email protected]
 * @see     http://smoothstate.com
 *
 */

(function (factory) {
  'use strict';

  if(typeof module === 'object' && typeof module.exports === 'object') {
    factory(require('jquery'), window, document);
  } else {
    factory(jQuery, window, document);
  }

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4