Hi, Currenty Beans loads: jQuery v1.12.4 - Google identify it as -medium security vulnerabilities risk.
- The current version is jquery v3.3.1. - Now I know there are probably differences between the versions.
Question: which jQuery version (no security risk) . will work with beans/uikit? and how to use/that version. Thanks
Hi Frederick,
Beans is using the jQuery version shipped with WordPress.
If you want to upgrade jQuery before WordPress ships a new version, you can either try this plugin: https://wordpress.org/plugins/jquery-updater/ or dequeue jQuery and enqueue a different version, something like (untested):
wp_deregister_script('jquery');
wp_enqueue_script( 'jquery', 'https://code.jquery.com/jquery-3.3.1.min.js', false, '3.3.1' );
wp_add_inline_script( 'jquery', 'var jQuery = $.noConflict(true);' );
Hi Cristoph,
Thank you very much for your reply.and your help.
Just one fallowup question: do you know how to make the off-canvas / mobile menu work without jquery / js ? So uikit css only.
Thanks again.
Update... I just try Not to load jQuery file.. just for the mobile menu (canvas). The canvas menu is the only one left - I elimenated jQuery from everything else in front-load.... A small js file will be ok - if no other way to make it with just uikit css.
Thanks a lot for your help.