Okay
  Public Ticket #733835
Wordpress update broke your jquery
Closed

Comments

  • Trenton started the conversation

    Hey there!

    The recent Wordpress update has a newer version of jquery which unfortunately breaks some code. Any where you were using 'a[href*=#]:not([href=#])' needs to change to 'a[href*="#"]:not([href="#"])'

    For anyone else running into problems today, patching these lines in TheFox/js/customjs.js should fix:

    Line 223:  j$('a[href*=#]:not([href=#])').click(function () {

    Change to:

     j$('a[href*="#"]:not([href="#"])').click(function () {


    Line 1239:  j$(".page-template-onepage #mobile-menu .menu-item a[href*=#]:not([href=#])').click(function (e) {

    Change to: 

    j$('.page-template-onepage #mobile-menu .menu-item a[href*="#"]:not([href="#"])').click(function (e) {


  • Jason replied

    Sounds like the problem I have but how and where do I go and change that code?


  • Trenton replied

    I updated the customjs.js file by downloading/changing/reuploading with an FTP program. The file is located here: wp-content/themes/TheFox/js/customjs.js

    I'm sure TheFox team will do an update soon to fix also.

  • Jason replied

    I hope so as that's a bit beyond me and why I pay for support - not sure if it's related but none of my tabs work either! :(


  •  895
    TheFox replied

    Hello,

    We are working on WordPress 4.5 update, it should be ready today and fix the problems you are having.

    Sorry for the inconvenience and thanks for your patience.

    Regards

    IF you can wait use the customjs.js file we included in this reply