jQuery in Wordpress - Why is it not working?
<p>I am using this as my starter template: <a href="http://html5reset.org/" rel="nofollow">www.html5reset.org/</a></p>

<p>It's pretty nice, but I believe something is wrong with jQuery in there.</p>

<p>In the <code>functions.php</code> it says:</p>

<pre><code>// Load jQuery
    if ( !function_exists(core_mods) ) {
        function core_mods() {
            if ( !is_admin() ) {
                wp_deregister_script('jquery');
                wp_register_script('jquery', ("//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"), false);
                wp_enqueue_script('jquery');
            }
        }
        core_mods();
    }
</code></pre>

<p>This seems fine to me - is it alright?</p>

<p>There also is a premade JS file. In this file it says:</p>

<pre><code>// remap jQuery to $
(function($){})(window.jQuery);
</code></pre>

<p>I don't know really what this does, but it seems also ok.</p>

<p>To test if jQuery works, I tried the following - none of it is woking, jQuery is not defined.</p>

<pre><code>$(document).ready(function() {
    alert("This is a test.");
});

jQuery(document).ready(function() {
    alert("This is a test.");
});

$(document).ready(function($) {
    alert("This is a test.");
});
</code></pre>

<p>So, can you tell ma what could be wrong with this? Thank you!</p>
