Results 1 to 6 of 6

Thread: Move Wordpress JavaScript to the Footer

  1. #1
    Thread Starter
    Junior Member amine0272's Avatar
    Join Date
    Aug 2011
    Location
    United States
    Posts
    20
    Thanks
    2
    Thanked 20 Times in 7 Posts

    Move Wordpress JavaScript to the Footer

    Itís easy to do this in Word*Press, just add the fol*low*ing to your themeís functions.php file.

    Code:
    /*
    *	Move al JavaScript file to the footer.
    */
    remove_action('wp_head', 'wp_print_scripts');
    remove_action('wp_head', 'wp_print_head_scripts', 9);
    remove_action('wp_head', 'wp_enqueue_scripts', 1);
    add_action('wp_footer', 'wp_print_scripts', 5);
    add_action('wp_footer', 'wp_enqueue_scripts', 5);
    add_action('wp_footer', 'wp_print_head_scripts', 5);
    That's it, enjoy

  2. The Following User Says Thank You to amine0272 For This Useful Post:

    nayan007 (December 11th, 2011)

  3. #2
    Marketplace Seller dikiyforester's Avatar
    Join Date
    Oct 2011
    Location
    Russian Federation
    Posts
    1,994
    Thanks
    85
    Thanked 526 Times in 425 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #3
    Thread Starter
    Junior Member amine0272's Avatar
    Join Date
    Aug 2011
    Location
    United States
    Posts
    20
    Thanks
    2
    Thanked 20 Times in 7 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. The Following User Says Thank You to amine0272 For This Useful Post:

    dikiyforester (December 11th, 2011)

  6. #4
    Marketplace Seller dikiyforester's Avatar
    Join Date
    Oct 2011
    Location
    Russian Federation
    Posts
    1,994
    Thanks
    85
    Thanked 526 Times in 425 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  7. #5
    Thread Starter
    Junior Member amine0272's Avatar
    Join Date
    Aug 2011
    Location
    United States
    Posts
    20
    Thanks
    2
    Thanked 20 Times in 7 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  8. #6
    Member naturalrabbitfood's Avatar
    Join Date
    Jan 2012
    Location
    United States
    Posts
    60
    Thanks
    7
    Thanked 1 Time in 1 Post
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Adding javascript HELP!
    By garyb in forum ClassiPress General Discussion
    Replies: 2
    Last Post: December 13th, 2011, 03:13 PM
  2. remove the classipress footer " ads by classified software" and " wordpress
    By terenztan in forum ClassiPress General Discussion
    Replies: 2
    Last Post: October 20th, 2011, 04:52 PM
  3. [SOLVED] 3.1.3 editing and removing footer.php coding for appthemes and wordpress
    By compaq in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: August 1st, 2011, 11:29 AM
  4. Alignment of footer - the footer menu is not aligned propperly
    By sonofspider in forum Clipper General Discussion
    Replies: 5
    Last Post: July 21st, 2011, 05:02 AM