@lumartist
5 years, 5 months ago
Thanks a ton Venutius. That did the trick. Never thought of that. Sometimes the solution can be so simple…
Thanks again!
Are you looking to load a more up to date version of jquery?
Exactly.
This is the whole code I am using:
function replace_core_jquery_version() { wp_deregister_script( 'jquery' ); wp_register_script( 'jquery-new', get_template_directory_uri() . '/js/jquery.min.js', array(), '3.3.1', true ); wp_deregister_script( 'jquery-migrate' ); wp_enqueue_script('jquery-new'); } add_action( 'wp_enqueue_scripts', 'replace_core_jquery_version' );