scroll-top blocks other plugin functionality on wp 4.5
-
Dear theme developers,
I’ve upgraded today to wordpress 4.5 and discovered that some of the plugins were not working correctly anymore (in this specific case formidablepro forms the conditional logic).
In the console the following error was thrown:
Uncaught Error: Syntax error, unrecognized expression: a[href=#scroll-top]After some research I found out that the error originated from the responsive theme.
So I went to the responsive-scripts-min.js and removed temporarily the specific line of code which was causing the problem:jQuery(document).ready(function ($) {
$(‘a[href=#scroll-top]’).click(function () {
$(‘html, body’).animate({
scrollTop: 0
}, ‘slow’);
return false;
});
});And voila the error was gone and formidable plugin worked again.
But of course this is only a temporarily solution which goes without the scroll top functionality.Could you please fix this in your next theme update? ??
Cheers,
visuallization
- The topic ‘scroll-top blocks other plugin functionality on wp 4.5’ is closed to new replies.