Skip to content

Instantly share code, notes, and snippets.

@techjewel
Created November 12, 2013 01:05

Revisions

  1. techjewel created this gist Nov 12, 2013.
    11 changes: 11 additions & 0 deletions WordPress_Jquery.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    <?php
    function add_scripts() {
    wp_deregister_script( 'jquery' );
    wp_register_script( 'jquery',
    '//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js');
    wp_enqueue_script( 'jquery' );
    }

    add_action('wp_enqueue_scripts', 'add_scripts');