<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ThemeShaper Forums Topic: Move Javascript after footer</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Tue, 21 May 2013 06:10:08 +0000</pubDate>

<item>
<title>davidostrow on "Move Javascript after footer"</title>
<link>http://themeshaper.com/forums/topic/move-javascript-after-footer#post-21034</link>
<pubDate>Wed, 04 May 2011 16:56:50 +0000</pubDate>
<dc:creator>davidostrow</dc:creator>
<guid isPermaLink="false">21034@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;kirkroberts,&#60;/p&#62;
&#60;p&#62;I has the same issue as you.  how did you fix the problem....
&#60;/p&#62;</description>
</item>
<item>
<title>kirkroberts on "Move Javascript after footer"</title>
<link>http://themeshaper.com/forums/topic/move-javascript-after-footer#post-19002</link>
<pubDate>Sun, 06 Feb 2011 13:33:41 +0000</pubDate>
<dc:creator>kirkroberts</dc:creator>
<guid isPermaLink="false">19002@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thanks, madfatter! I used your code to move my js successfully. Very helpful!
&#60;/p&#62;</description>
</item>
<item>
<title>madfatter on "Move Javascript after footer"</title>
<link>http://themeshaper.com/forums/topic/move-javascript-after-footer#post-17548</link>
<pubDate>Mon, 06 Dec 2010 16:19:23 +0000</pubDate>
<dc:creator>madfatter</dc:creator>
<guid isPermaLink="false">17548@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi davidostrow,&#60;/p&#62;
&#60;p&#62;I'm not particularly savvy at coding so I don't have much to offer in assistance. Could the issue involve the order in which the scripts are being placed in the footer?  For instance, if some plugins are loaded before the jquery library it could break things.  You may have already considered this...
&#60;/p&#62;</description>
</item>
<item>
<title>davidostrow on "Move Javascript after footer"</title>
<link>http://themeshaper.com/forums/topic/move-javascript-after-footer#post-17378</link>
<pubDate>Wed, 01 Dec 2010 20:57:04 +0000</pubDate>
<dc:creator>davidostrow</dc:creator>
<guid isPermaLink="false">17378@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;OK.  I am really baffled.  I tried the fix above and got the same result as the Javascript footer plugin for wordpress.  Here is what is going on.  I want to move JS to the footer.  the js plug does that well, as does the code above, but it somehow is interfering with the nextgengallery slideshow feature.  It uses the jw...imagerotator. I dont quite get how the code in the post breaks the rotator.  here is what happens.  If I leave it as you have put it, or if i jsut teh js footer code (almost the same) it breaks the rotator.  If I comment out the second line of your code or the same line the rotator works, but the js does not move.  I am sure this is a simple thing that i am missing.  Right now it is set so the image rotator works.  If you want I can set up my sandbox site to have this problem so my main site is not &#34;broken&#34;&#60;/p&#62;
&#60;p&#62;Let me know your thoughts.&#60;/p&#62;
&#60;p&#62;Thanks &#60;/p&#62;
&#60;p&#62;dave
&#60;/p&#62;</description>
</item>
<item>
<title>madfatter on "Move Javascript after footer"</title>
<link>http://themeshaper.com/forums/topic/move-javascript-after-footer#post-16471</link>
<pubDate>Wed, 20 Oct 2010 18:17:20 +0000</pubDate>
<dc:creator>madfatter</dc:creator>
<guid isPermaLink="false">16471@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I figured it out. I needed to call the remove action on init.&#60;/p&#62;
&#60;p&#62; I'm posting the complete code for others who might want to do the same:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
//Remove the necessary actions from the head&#60;/p&#62;
&#60;p&#62;remove_action('wp_head', 'wp_print_scripts');&#60;br /&#62;
remove_action('wp_head', 'wp_print_head_scripts', 9);&#60;br /&#62;
remove_action('wp_head', 'wp_enqueue_scripts', 1);&#60;/p&#62;
&#60;p&#62;function my_remove_thematic_scripts() {&#60;br /&#62;
   remove_action('wp_head','thematic_head_scripts');&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;add_action('init', 'my_remove_thematic_scripts'); //wait for init&#60;/p&#62;
&#60;p&#62;//Add the actions to the footer&#60;/p&#62;
&#60;p&#62;add_action('wp_footer', 'wp_print_scripts', 5);&#60;br /&#62;
add_action('wp_footer', 'wp_enqueue_scripts', 5);&#60;br /&#62;
add_action('wp_footer','thematic_head_scripts');&#60;br /&#62;
add_action('wp_footer', 'wp_print_head_scripts', 5);&#60;br /&#62;
&#60;/code&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>madfatter on "Move Javascript after footer"</title>
<link>http://themeshaper.com/forums/topic/move-javascript-after-footer#post-16465</link>
<pubDate>Wed, 20 Oct 2010 16:48:01 +0000</pubDate>
<dc:creator>madfatter</dc:creator>
<guid isPermaLink="false">16465@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I'm half way there:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
add_action('wp_footer','thematic_head_scripts');&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Adds the scripts to the footer but&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
remove_action('wp_head','thematic_head_scripts');&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Does not take them out of the head.&#60;/p&#62;
&#60;p&#62;Does anybody know what I'm doing wrong?&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
</item>
<item>
<title>madfatter on "Move Javascript after footer"</title>
<link>http://themeshaper.com/forums/topic/move-javascript-after-footer#post-16458</link>
<pubDate>Wed, 20 Oct 2010 14:16:56 +0000</pubDate>
<dc:creator>madfatter</dc:creator>
<guid isPermaLink="false">16458@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I'm interested in how to do this as well.  I've used the code above to successfully move the default WordPress scripts to the footer but I'm not sure where the actions are that add thematic's scripts to the head.  Any help would be greatly appreciated.&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
</item>
<item>
<title>devzonefr on "Move Javascript after footer"</title>
<link>http://themeshaper.com/forums/topic/move-javascript-after-footer#post-14063</link>
<pubDate>Thu, 22 Jul 2010 10:48:23 +0000</pubDate>
<dc:creator>devzonefr</dc:creator>
<guid isPermaLink="false">14063@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi !&#60;/p&#62;
&#60;p&#62;I'm trying to make some optimisations with javascript's files&#60;/p&#62;
&#60;p&#62;First I prefer to user Google Api for jquery :&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
// smart jquery inclusion&#60;br /&#62;
// &#38;#38; move javascript to footer&#60;br /&#62;
if (!is_admin()) {&#60;br /&#62;
    wp_deregister_script( 'jquery' );&#60;br /&#62;
    wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js', false );&#60;br /&#62;
    wp_enqueue_script( 'jquery' );&#60;br /&#62;
}&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Second, and it's my problem, i want to move others files (hoverIntent, superfish, ...) in wp_footer().&#60;br /&#62;
I've this code but i don't know how to use it with the thematic_head_scripts()...&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
remove_action( 'wp_head', 'wp_print_scripts' );&#60;br /&#62;
remove_action( 'wp_head', 'wp_print_head_scripts', 9 );&#60;br /&#62;
remove_action( 'wp_head', 'wp_enqueue_scripts', 1 );&#60;br /&#62;
add_action( 'wp_footer', 'wp_print_scripts', 5 );&#60;br /&#62;
add_action( 'wp_footer', 'wp_enqueue_scripts', 5 );&#60;br /&#62;
add_action( 'wp_footer', 'wp_print_head_scripts', 5 );&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Thks
&#60;/p&#62;</description>
</item>

</channel>
</rss>
