WordPress.org

Support

Support » How-To and Troubleshooting » jQuery not loaded!

jQuery not loaded!

  • yu
    Member

    @gerbilo

    guys, it’s a big issue here.. i’ve updated files manually to 3.0.2 version and got Uncaught TypeError: Property ‘$’ of object [object DOMWindow] is not a function. so seems like jQuery is not loaded in wp_head in 3.0.2 version!

Viewing 4 replies - 1 through 4 (of 4 total)
  • There’s a few fixes for this. First thing you should try is calling:

    <?php wp_enqueue_script(“jquery”); ?>

    before you load your header file. Then to avoid conflicts you can do:

    var $j = jQuery.noConflict();

    then call $j on every function:
    $j(function(){

    yu
    Member

    @gerbilo

    yeaa.. ok.. let’s rewrite 15-20 javascript files to get this working! great solution 😀 there are problems with release i guess!
    also, this solution doesn’t work for me..

    You don’t have to rewrite every JS file, just those related to your error. So if you have any functions to do with window size or scale maybe that would solve your problems.

    Where is your site? It could be something that’s been overlooked

    yu
    Member

    @gerbilo

    http://2fort.lv – my site

    I’ve used `
    <script src=”https://www.google.com/jsapi” type=”text/javascript”>/script>
    <script language=”Javascript” type=”text/javascript”>
    google.load(“jquery”,”1″);
    google.load(“jqueryui”,”1″);
    </script>`
    before wp_head()

    So now there are two jquery called out. I guess it’s not a best idea.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘jQuery not loaded!’ is closed to new replies.