• Resolved Alvaro Gómez

    (@mrfoxtalbot)


    There′s a 99% chance I′m doing something wrong here so thanks in advance por your patience: I am de-regisering twentytwelve′s default jQuery version (1.2) and the registering, and using version 1.8 instead, but this prevents this plugin from working. As soon as I go back to the old version it works fine.

    Is this supposed to happen? Am I missing something here?

    Thanks a bunch.

    https://www.ads-software.com/plugins/responsive-menu/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi mrfoxtalbot,

    That’s strange as it shouldn’t work with 1.2!

    What about if you use the latest version of jQuery (11.1) does this fix it, as 1.8 is quite old now (over a year).

    Also, what errors, if any do you get in the console when loading the page? If you provide me with a link to the site I can take a look also.

    Many thanks

    Peter

    Thread Starter Alvaro Gómez

    (@mrfoxtalbot)

    Hi and thanks for your reply, Peter.

    I updated to the latest version of jQuery as you suggested but that didn′t fix it.

    Unfortunately the site is not public right now (thanks so much for offering to give it a look). I can tell you I am getting an error (“TypeError $ is not a function”) regarding this function:

    var windowResize = function()
    {
    console.log($(window).width());
    var contentHeight = $(window).height() – $(“#site_header”).outerHeight() – $(“#site_footer”).outerHeight();
    $(“#content”).css({minHeight: contentHeight});
    };
    windowResize();
    $(window).resize(windowResize);

    Could this be related? Thanks a lot again.

    Hi mrfoxtalbot,

    There’s the problem then ??

    Whatever is setting that part of jQuery is causing issues on the site and probably stopping other jQuery from working (i.e – mine).

    Try disabling other plugins/themes until the error goes away and then you will at least know where the problem is coming from to hunt it down and fix.

    Let me know how you get on.

    Many thanks

    Peter

    You’re right, mrfoxtalbot, your code is doing something wrong — it wouldn’t even work on stock WordPress. $ is not a function because WordPress loads jQuery in “noConflict” mode.

    Solution: Change each of the “$”s to “jQuery” (note the case).

    Hi smhmic,

    You are turning into my Responsive Menu jQuery guru, thanks for all the help with this!

    As I said, jQuery is not my strong point so thanks again.

    foxtalbot can you let me know if the above has fixed your issue?

    Many thanks

    Peter

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Not working with jQuery 1.8’ is closed to new replies.