Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Kathryn Presner

    (@zoonini)

    Hi @mrosfy – I asked a developer about this, and they suggested trying the StackXchange solution. So first, de-register jQuery, then add it back via your CDN.

    Thread Starter Mauro Vicariotto

    (@mrosfy)

    Thank you Kathryn!

    Thread Starter Mauro Vicariotto

    (@mrosfy)

    … sorry Kathryn, to deregister is it enough to write

    wp_deregister_script( 'jquery-core' ); ?

    not necessary to add info on version to deregister?

    Thank you again

    Mauro

    That is correct.

    Additional info: WordPress registers scripts by a “handle,” which is jquery-core in this case.

    Moderator Kathryn Presner

    (@zoonini)

    Hi @mrosfy@ndiego shared that wp_deregister_script()?only?accepts a single parameter,?which is the name of the script to be removed. So you would just use the name of the script (no version needed) as you have.

    • This reply was modified 1 year, 5 months ago by Kathryn Presner. Reason: fixed username for Nick
    Thread Starter Mauro Vicariotto

    (@mrosfy)

    Thank you, in fact it is the solution I’ve applied. All works perfectly and the child theme progress is very good. (also adding some js conditional statements for small devices “window.matchMedia()” + Modernizr mq solutions, and css “touch-action” for touch screen devices, which were missing in WP).

    Thank you very much for your great support.

    Mauro

    Moderator Kathryn Presner

    (@zoonini)

    Glad to hear things are coming along well! I’ll go ahead and mark this one as resolved.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘update jQuery version in WP – TS’ is closed to new replies.