Grow your CSS skills. Land your dream job.

Jquery not loaded ? – wordpress functions.php

  • # May 28, 2012 at 8:32 am

    here’s my header http://pastebin.com/exTpp8rD
    and here’s my functions.php http://pastebin.com/xCvNuxXY
    and i keep getting this in firebug “jQuery not defined”
    anyone here knows whats going on ?

    # May 28, 2012 at 9:37 am

    Your missing the wp_head() function from your header.php file which is where all the queued scripts and such get executed and output to the source.

    # May 28, 2012 at 10:02 am

    @SgtLegend – I see wp_head() in that first pastebin alright (line 47). Not sure if you missed it or if it was added after?

    Either way, it’s coming AFTER the call to load the Superfish menu. That won’t work, cause the library needs to be loaded before any plugins are called.

    @KennyVB – load the Superfish call (what you currently have on lines 27-34) at the end of the BODY tag, right before and see if that helps?

    # May 28, 2012 at 11:48 am

    @Senff that helped ! i moved it so it was right after the

    wp_head()

    now to get the rest to work :) but thx for the help !

    # May 28, 2012 at 1:00 pm

    That’s great that it works, but don’t just disregard what it says right before wp_head():

            /* Always have wp_head() just before the closing 
    * tag of your theme, or you will break many plugins, which
    * generally use this hook to add elements to such
    * as styles, scripts, and meta tags.
    */

    Because of that, it would probably be better to call the Superfish script right at the bottom of the Body.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".