Title: JQuery error
Last modified: October 3, 2016

---

# JQuery error

 *  Resolved [Zoee](https://wordpress.org/support/users/epixmedia/)
 * (@epixmedia)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/jquery-error-44/)
 * Hi, we use this plugin a lot and have never had any conflict issues, so I’m a
   little baffled as to why its not working.
 * We’re getting this error in the console:
    Error: Syntax error, unrecognized expression:
   [https://youtu.be/h0PiJtvI2wQ](https://youtu.be/h0PiJtvI2wQ) …value:null},fa.
   error=function(a){throw new Error(“Syntax error, unrecognized exp…
 * It happens on videos, images, everything we’ve tried.
 * I’ve checked your known conflicts and have altered the setting on ithemes security,
   I’ve also checked for non-enqueued js files and whilst I found a couple, removing
   them made no difference.
 * Any ideas?
 * Thanks 🙂
 * Zoe

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/jquery-error-44/#post-8248611)
 * Hi Zoe, can you share a link to see the issue live? The browser developer tools
   console might show errors to reveal the problem / conflict…
 *  Thread Starter [Zoee](https://wordpress.org/support/users/epixmedia/)
 * (@epixmedia)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/jquery-error-44/#post-8250303)
 * Hi Ravan, the error I posted above is the error from the developer console. The
   URL is uolcareers.co.uk and the video is full width with a play icon over it,
   so you can’t miss it (its about half way down).
 * I’ve set it to open in a new window so you can see the console error. Without
   that the error flashes up then the console reloads on the youtube page 🙂
 * Thanks for your help!
 * Zoe
 *  [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/jquery-error-44/#post-8252156)
 * Sadly, that is the only error that seems to occur and it does not tell us anything
   meaningful as to where this conflict is coming from. Have you tried disabling
   all other plugins? If that solves it, enable them one by one and test each time
   to find out which one causes the conflict.
 * If not, then it must be one of the scripts that are added in the themes footer.
   php … you could switch to the twentysixteen theme for a minute to see if that
   fixes it.
 * Or make a backup of the footer.php file and try removing them.
 * Please let me know if you find the conflicting script. I’d like to investigate
   further if possible 🙂
 *  [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/jquery-error-44/#post-8252181)
 * Update: it’s this script snippet that lives all the way at the bottom in footer.
   php
 *     ```
       <script type="text/javascript">
         var jQueryroot = jQuery('html, body');
         jQuery('a').click(function() {
             var href = jQuery.attr(this, 'href');
             jQueryroot.animate({
                 scrollTop: jQuery(href).offset().top
             }, 500, function () {
                 window.location.hash = href;
             });
             return false;
         });
       </script>
       ```
   
 * The script is meant to kick in on every link click. This interferes with FancyBox
   trying to capture the click event. Remove that snippet or adapt it to only dedicate
   itself to internal page anchor links.
 *  Thread Starter [Zoee](https://wordpress.org/support/users/epixmedia/)
 * (@epixmedia)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/jquery-error-44/#post-8276955)
 * Thanks for that! have been more specific and thats sorted it 🙂
 * Really appreciate the help!
    -  This reply was modified 9 years, 8 months ago by [Zoee](https://wordpress.org/support/users/epixmedia/).
 *  [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/jquery-error-44/#post-8277108)
 * Excellent 🙂 (marking as solved)

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘JQuery error’ is closed to new replies.

 * ![](https://ps.w.org/easy-fancybox/assets/icon-256x256.png?rev=3188201)
 * [Firelight Lightbox](https://wordpress.org/plugins/easy-fancybox/)
 * [Support Threads](https://wordpress.org/support/plugin/easy-fancybox/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-fancybox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-fancybox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-fancybox/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/jquery-error-44/#post-8277108)
 * Status: resolved