Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Jquery not loaded ? – wordpress functions.php

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #38245
    KennyVB
    Member

    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 ?

    #103572
    SgtLegend
    Member

    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.

    #103573
    Senff
    Participant

    @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?

    #103575
    KennyVB
    Member

    @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 !

    #103580
    Senff
    Participant

    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)
  • The forum ‘Back End’ is closed to new topics and replies.