Title: Plugin is not working with WordPress 4.5
Last modified: August 31, 2016

---

# Plugin is not working with WordPress 4.5

 *  Resolved [zilek](https://wordpress.org/support/users/zilek/)
 * (@zilek)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/plugin-is-not-working-with-wordpress-45/)
 * After updating to 4.5 the plugin stopped working.
    It gives an error: Uncaught
   Error: Syntax error, unrecognized expression: area[href*=#],a[href*=#]:not([href
   =#]):not([href^=’#tab’]):not([href^=’#quicktab’]):not([href^=’#pane’])
 * It’s jQuery problem…
    Any idea how to fix this?
 * Thanks
 * [https://wordpress.org/plugins/easy-smooth-scroll-links/](https://wordpress.org/plugins/easy-smooth-scroll-links/)

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/plugin-is-not-working-with-wordpress-45/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-is-not-working-with-wordpress-45/page/2/?output_format=md)

 *  [bsaires](https://wordpress.org/support/users/bsaires/)
 * (@bsaires)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/plugin-is-not-working-with-wordpress-45/#post-7270809)
 * I’m also getting the same error after upgrading to WordPress 4.5. Nothing to 
   do with the Easy Smooth Scroll Links plugin though… it has just stopped all the
   anchor links on my website (tangotrips.com) – stop working. If anyone has any
   ideas how to fix please let us know! Cheers 🙂
 *  [bsaires](https://wordpress.org/support/users/bsaires/)
 * (@bsaires)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/plugin-is-not-working-with-wordpress-45/#post-7270813)
 * PS – The exact error I am getting when using the “inspect” function on Google
   Chrome is:
 * Uncaught Error: Syntax error, unrecognized expression: a[href*=#]
 *  [bsaires](https://wordpress.org/support/users/bsaires/)
 * (@bsaires)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/plugin-is-not-working-with-wordpress-45/#post-7270814)
 * Which is found in a line of code in:
 * [http://tangotrips.com/wordpress/wp-includes/js/jquery/jquery.js?ver=1.12.3](http://tangotrips.com/wordpress/wp-includes/js/jquery/jquery.js?ver=1.12.3)
 * Sorry for all the posts one after another.
 *  [timdoes](https://wordpress.org/support/users/timdoes/)
 * (@timdoes)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/plugin-is-not-working-with-wordpress-45/#post-7270827)
 * Please refer to [https://github.com/jquery/jquery/issues/2885](https://github.com/jquery/jquery/issues/2885)
 * your selector is not valid. # is a special char and needs to be escaped like `'
   a[href*=\\#]:not([href=\\#])'`
 *  [bsaires](https://wordpress.org/support/users/bsaires/)
 * (@bsaires)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/plugin-is-not-working-with-wordpress-45/#post-7270835)
 * Thanks timdoes! I think this is in the WordPress 4.5 code though? Who or how 
   do I contact at WordPress to get this fixed in the next release? I don’t want
   to go around messing with the WordPress source code (I’m already in way over 
   my head on this). Cheers!
 *  Thread Starter [zilek](https://wordpress.org/support/users/zilek/)
 * (@zilek)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/plugin-is-not-working-with-wordpress-45/#post-7270836)
 * Thanks timdoes!
    Bsaires, actually it does have everything to do with the plugin,
   but it is simple to fix. I changed # to \\# in index.php of Easy Smooth Scroll
   Links plugin and it works now.
 *  [bsaires](https://wordpress.org/support/users/bsaires/)
 * (@bsaires)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/plugin-is-not-working-with-wordpress-45/#post-7270842)
 * I don’t have the Easy Smooth Scroll Links plugin, zilek! So it can’t be anything
   to do with that.
 * The error code for me is within the WP-includes folder, under javascript.
 *  [bsaires](https://wordpress.org/support/users/bsaires/)
 * (@bsaires)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/plugin-is-not-working-with-wordpress-45/#post-7270844)
 * At least, in my case, it can’t be to do with that plugin.
 *  Thread Starter [zilek](https://wordpress.org/support/users/zilek/)
 * (@zilek)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/plugin-is-not-working-with-wordpress-45/#post-7270847)
 * I see. I thought you have the same plugin… WordPress 4.5 updates jQuery… so it
   shows you js error but the error is probably in your theme or plugins folder.
   
   Read this: [https://wordpress.org/support/topic/read-this-first-wordpress-45-master-list?replies=6](https://wordpress.org/support/topic/read-this-first-wordpress-45-master-list?replies=6)
 *  [bsaires](https://wordpress.org/support/users/bsaires/)
 * (@bsaires)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/plugin-is-not-working-with-wordpress-45/#post-7270936)
 * Thanks again zilek. It was indeed that old, wrong javascript in my theme. The
   theme provider just pushed through an update to fix it 🙂
 *  [Lloyd Saunders](https://wordpress.org/support/users/jeriff-cheng/)
 * (@jeriff-cheng)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/plugin-is-not-working-with-wordpress-45/#post-7270941)
 * Update it.
    2.1
 *  Thread Starter [zilek](https://wordpress.org/support/users/zilek/)
 * (@zilek)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/plugin-is-not-working-with-wordpress-45/#post-7270955)
 * Thank you!
 *  [timdoes](https://wordpress.org/support/users/timdoes/)
 * (@timdoes)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/plugin-is-not-working-with-wordpress-45/#post-7270970)
 * Thanks JeriffCheng!
 *  [babaLucas](https://wordpress.org/support/users/babalucas/)
 * (@babalucas)
 * [10 years ago](https://wordpress.org/support/topic/plugin-is-not-working-with-wordpress-45/#post-7271105)
 * Still having issue with this on two sites.
 * One is [http://dev.babalucas.com/gypsysoul](http://dev.babalucas.com/gypsysoul)
 *  [Lloyd Saunders](https://wordpress.org/support/users/jeriff-cheng/)
 * (@jeriff-cheng)
 * [10 years ago](https://wordpress.org/support/topic/plugin-is-not-working-with-wordpress-45/#post-7271129)
 * [@babalucas](https://wordpress.org/support/users/babalucas/)
 *     ```
       // Adds class to our header upon scroll
       	jQuery(window).scroll(function() {
   
       	    if(jQuery(this).scrollTop() > 0) {
       	    	jQuery('#header').addClass('movement');
       	    } else {
       	    	jQuery('#header').removeClass('movement');
       	    }
   
       	});
   
       // Smooth Scrolling
       	jQuery(function($) {
       	  $('a[href*=#]:not([href=#])').click(function() {
       	    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
       	      var target = $(this.hash);
       	      target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
       	      if (target.length) {
       	        $('html,body').animate({
       	          scrollTop: target.offset().top - 100
       	        }, 1000);
       	        return false;
       	      }
       	    }
       	  });
       	});
   
       </script>
       ```
   
 * Your theme or other plugin contains this code block. which is in conflict with
 *  Easy Smooth Scroll Links

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/plugin-is-not-working-with-wordpress-45/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-is-not-working-with-wordpress-45/page/2/?output_format=md)

The topic ‘Plugin is not working with WordPress 4.5’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/easy-smooth-scroll-links_a8c3d5.svg)
 * [Easy Smooth Scroll Links - Smooth Scrolling Anchor](https://wordpress.org/plugins/easy-smooth-scroll-links/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-smooth-scroll-links/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-smooth-scroll-links/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-smooth-scroll-links/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-smooth-scroll-links/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-smooth-scroll-links/reviews/)

 * 17 replies
 * 6 participants
 * Last reply from: [martas23](https://wordpress.org/support/users/martas23/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/plugin-is-not-working-with-wordpress-45/page/2/#post-7271169)
 * Status: resolved