Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

  • Lumartist
    Participant

    @lumartist

    Thanks a ton Venutius. That did the trick. Never thought of that. Sometimes the solution can be so simple…

    Thanks again!


    Lumartist
    Participant

    @lumartist

    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' );
Viewing 2 replies - 1 through 2 (of 2 total)
Skip to toolbar