jQuery Error with Avada layouts for content
-
Hello @freemp,
first of all thanks for your great plugin that switches off these author archive pages that should be unnecessary (and therefore unprofessional to be presented though) for a great number of WordPress websites.
Now we found a problem with the important theme “Avada”.
If we browse to /author/admin/ with your plugin activated the 404 is generated as expected, but there additionally is a jQuery error in the console and not every JS element in the main menu keeps working on this /author/admin/ page.
The error:
Uncaught Error: Syntax error, unrecognized expression: #/ jQuery 9 refresh https://[DOMAIN]/wp-content/themes/Avada/assets/min/js/library/bootstrap.scrollspy.js?ver=3.3.2:1 jQuery 3 refresh https://[DOMAIN]/wp-content/themes/Avada/assets/min/js/library/bootstrap.scrollspy.js?ver=3.3.2:1 s https://[DOMAIN]/wp-content/themes/Avada/assets/min/js/library/bootstrap.scrollspy.js?ver=3.3.2:1 e https://[DOMAIN]/wp-content/themes/Avada/assets/min/js/library/bootstrap.scrollspy.js?ver=3.3.2:1 jQuery 2 e https://[DOMAIN]/wp-content/themes/Avada/assets/min/js/library/bootstrap.scrollspy.js?ver=3.3.2:1 <anonymous> https://[DOMAIN]/wp-content/themes/Avada/assets/min/js/general/avada-scrollspy.js?ver=7.7.1:1 jQuery 13 e t setTimeout handler*Deferred/then/l/< c fireWith fire c fireWith ready B EventListener.handleEvent* <anonymous> <anonymous> jquery.min.js:2:13639
As soon as we switch off your plugin the jQuery error in the console is gone.
The error only occurs if we use “Layouts” in Avada (which is like in other themes a special Avada feature). We have many other Avada installations that don’t use layouts and there we don’t see the above problem with your plugin.
Since Avada really is an important theme with many, many installations we thought you might want to look into this and make your plugin compatible with Avada layouts?
Greetings and thanks for your work,
-doffine
- The topic ‘jQuery Error with Avada layouts for content’ is closed to new replies.