• Resolved rochow

    (@rochow)


    Basic WP install. Getting an error about $ being undefined.

    Find + replace of $ for jQuery in all the JS files fixes this. Maybe should update the plugin files to be the same, as I don’t see where it’s defining $ (given jQuery in WP is in no conflict mode, and some of these functions are not being wrapped in jQuery to change that)

    • This topic was modified 1 year, 10 months ago by rochow.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Ross

    (@rmdglasgow)

    [Deleted post – Error was due to theme. Sorry!]

    • This reply was modified 1 year, 10 months ago by Ross. Reason: Error due to theme
    Plugin Author Ninja Team

    (@ninjateam)

    Hi @rochow,

    Thanks for reaching out. Firstly, please make sure you are using the latest version. Then can you clear both server cache and browser cache to see if this solve the issue? If that does not help, please send us screenshots of where you find the error with “$”.

    Have a nice day!

    Best regards,
    Kelly

    Thread Starter rochow

    (@rochow)

    Hi Kelly,

    Yes it’s the latest version.

    No it’s not cache.

    If you open the JavaScript files and see it has $ everywhere.
    Find and replace that with jQuery = solved, no more JavaScript errors.

    As mentioned WP uses no conflict mode given other JS libraries use $ also, so plain functions shouldn’t be using $ because it will not necessarily reference jQuery.

    Thanks,

    Plugin Author Ninja Team

    (@ninjateam)

    Thanks @rochow for the enlightenment, we will change it in the next update. I hope you can leave us a nice review, thank you so much.

    Kelly

    Plugin Author Ninja Team

    (@ninjateam)

    Hi there,

    Thanks for reaching out. We have released the update, please check it out.
    Thank you so much.

    Kelly

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘JavaScript Error’ is closed to new replies.