Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Hi ezzabne!

    More often than not the jQuery is not defined error is because the script is loading before the jQuery library has finished loading. The $ is not defined error is because WordPress run in noConflict() meaning that in order to use jQuery you would instead use jQuery( '#post-13' ) instead $( '#post-13' ). Part of that reason is that there are other JavaScript libraries that use the $ so it can create issues.

    Best way to troubleshoot is by deactivating all your plugins to see if that clears it up. If it does not, use a core theme like Twenty Fifteen/Sixteen to see if that clears it up.

    I agree with Jose. At first glance to me it also looks like your theme is not loading jQuery at all, and there are other scripts that depend on it.

    Make sure your theme’s functions.php file is enqueueing jQuery properly.

    Thread Starter ezzabne

    (@ezzabne)

    Thanks Jose & Susan. I must have looked at for far too long yesterday. Fresh eyes and your pointers helped.

    Thanks

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Awesome to see you were able to get it resolved! What was the underlying issue and how did you get it fixed if you don’t mind posting so others may benefit from it as well. ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Javascript errors on page’ is closed to new replies.