Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #19002

    Dear Kriesis,

    I would like to move the jquery-script from header into footer. I’ve tried all the workarounds I found in the www. But nothing works. Is WP3.5 the problem or the shoutbox-framework? Could you please help?

    Thanks a lot and best regards



    Hi Job,

    In your header.php you can remove this block of code:


    /* add javascript */
    wp_enqueue_script( 'jquery' );
    wp_enqueue_script( 'avia-default' );
    wp_enqueue_script( 'avia-prettyPhoto' );
    wp_enqueue_script( 'avia-html5-video' );
    wp_enqueue_script( 'avia-fade-slider' );

    /* We add some JavaScript to pages with the comment form
    * to support sites with threaded comments (when in use).
    if ( is_singular() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); }


    Then add that into the footer.php instead. Otherwise most things (plugins etc) load in their javascript via the wp_head hook so you may still get plugins loading in javascript there.




    Hi Devin,

    thanks for quick response! Already did that. Most Scripts load in footer now. But jquery is still in Header. Any Ideas?




    Hi Job,

    It could be a plugin calling it in wp_head but I can’t say for sure without inspecting the site live. Even then it would only be a guess if the source gives a hint on where and why its getting loaded into the head.



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

The topic ‘jquery in footer’ is closed to new replies.