Open ledihildawan opened 3 years ago
same error noticed here on WP 5.6 , the edit icon in Avada Builder is broken because of this error:
jquery.min.js?ver=3.5.1:2 Uncaught TypeError: this._addClass is not a function
at e.
Hi @liveeadmin. Recently I fixed that problem with install Custom CSS & JS plugin. Then add manually jquery to the admin:
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
Wordpress has updated jquery: https://wordpress.org/support/wordpress-version/version-5-6/#jquery-update
If you have better solution, please update in here. Thanks 👍
Hi @liveeadmin. Recently I fixed that problem with install Custom CSS & JS plugin. Then add manually jquery to the admin:
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
Wordpress has updated jquery: https://wordpress.org/support/wordpress-version/version-5-6/#jquery-update
If you have better solution, please update in here. Thanks 👍
Thanks, for reference i used this plugin: https://br.wordpress.org/plugins/custom-css-js/
Adding the below code to functions.php fixed my issue. but I think this is not a good way. Does anyone have a better solutions?
function custom_admin_js() {
echo '"<script type="text/javascript" src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>"';
}
add_action('admin_footer', 'custom_admin_js');
Then add manually jquery to the admin:
@ledihildawan , can you explain what admin
is where you added the code?
Your following remark helped me find the solution I posted below:
Wordpress has updated jquery: https://wordpress.org/support/wordpress-version/version-5-6/#jquery-update
Putting the unzipped Enable jQuery Migrate Helper plugin inside /var/www/html/wp-content/plugins
and activating from /wp-admin/Plugins
console solved this issue for me.
I am using WordPress 5.8.4. My issue was coming from Revolution Slider
plugin v2.3.3
@tashrifbillah I fixed the issue the same way @ledihildawan did. For me I had issues with ._addClass with Themify.
Click "Add HTML" and then on the right select "Where on page" = "Footer" and "Where in site" = "In Admin". I will attempt to upload an image below.
Also, I am using updated jQuery UI files. Here is my code if you want to use it.
<script src="https://code.jquery.com/ui/1.13.2/jquery-ui.js"></script>
<link rel="stylesheet" href="//code.jquery.com/ui/1.13.2/themes/base/jquery-ui.css">
Muchas gracias me funciono perfecto !!!!!!!
I just update to the new version and got that message also button add gallery not working.