jQuery not loaded! (5 posts)

  1. yu
    Posted 5 years ago #

    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!

  2. Ganners
    Posted 5 years ago #

    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:

  3. yu
    Posted 5 years ago #

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

  4. Ganners
    Posted 5 years ago #

    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

  5. yu
    Posted 5 years ago #

    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">
    before wp_head()
    So now there are two jquery called out. I guess it's not a best idea.

Topic Closed

This topic has been closed to new replies.

About this Topic