Viewing 4 replies - 1 through 4 (of 4 total)
  • That would suggest the site is using an inclompatible jQuery version. Make sure the jQuery library that is used is the one that comes with WordPress. Either version 1.7 and lower or 2+ are incompatible with Easy FancyBox.

    Thread Starter natrud

    (@natrud)

    Thank you. I don’t how to fix it event if it is right.
    I can’t understand why it works on one site and don’t want to work on another.
    I do the same things on the both sites simultaneously: Install wordpress, themes and plugins. Everything mostly the same.
    So I can’t understand why one of the site has another jQuery version.
    How and where can I change the jQuery version?
    And can you look through?

    Thread Starter natrud

    (@natrud)

    Already solved. I think that after WP upgreating jquery also upgrates. So I have to delete some my own jquery files from function.php

    Thank you for your help.

    Yes, if you want to include theme scripts that need jQuery then use the official method as described on https://ithemes.com/2015/02/17/adding-scripts-wordpress-right-way/ for example. Or use wp_enqueue_script('jquery'); if you ONLY need to add the main jQuery libary.

    But as long as you keep Easy FancyBox activated, it will make jQuery load as a dependency.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘jQuery(…).on is not a function’ is closed to new replies.