<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Support Forum - Topic: Enqueued scripts inserted in the middle of the body</title>
		<link>http://www.kriesi.at/support/topic/enqueued-scripts-inserted-in-the-middle-of-the-body</link>
		<description>Support Forum - Topic: Enqueued scripts inserted in the middle of the body</description>
		<language>en-US</language>
		<pubDate>Mon, 20 May 2013 20:28:33 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/enqueued-scripts-inserted-in-the-middle-of-the-body" rel="self" type="application/rss+xml" />

		<item>
			<title>Devin on "Enqueued scripts inserted in the middle of the body"</title>
			<link>http://www.kriesi.at/support/topic/enqueued-scripts-inserted-in-the-middle-of-the-body#post-91891</link>
			<pubDate>Wed, 16 Jan 2013 15:36:29 +0000</pubDate>
			<dc:creator>Devin</dc:creator>
			<guid isPermaLink="false">91891@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Glad Dude could help :)&#60;/p&#62;
&#60;p&#62;Let us know if you have any other questions or issues.&#60;/p&#62;
&#60;p&#62;Regards,&#60;/p&#62;
&#60;p&#62;Devin
&#60;/p&#62;</description>
		</item>
		<item>
			<title>FarenAgency on "Enqueued scripts inserted in the middle of the body"</title>
			<link>http://www.kriesi.at/support/topic/enqueued-scripts-inserted-in-the-middle-of-the-body#post-91746</link>
			<pubDate>Tue, 15 Jan 2013 19:07:25 +0000</pubDate>
			<dc:creator>FarenAgency</dc:creator>
			<guid isPermaLink="false">91746@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;That worked. Thank you very much.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Enqueued scripts inserted in the middle of the body"</title>
			<link>http://www.kriesi.at/support/topic/enqueued-scripts-inserted-in-the-middle-of-the-body#post-91276</link>
			<pubDate>Sat, 12 Jan 2013 17:04:06 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">91276@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;The datepicker doesn't support custom z-index values. If the theme (like Replete) changes the z-index for the content area the datepicker div will break. You need to add following code to css/custom.css or the quick css field to fix the issue:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;.ui-datepicker{
z-index: 99 !important;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>FarenAgency on "Enqueued scripts inserted in the middle of the body"</title>
			<link>http://www.kriesi.at/support/topic/enqueued-scripts-inserted-in-the-middle-of-the-body#post-91162</link>
			<pubDate>Fri, 11 Jan 2013 16:57:24 +0000</pubDate>
			<dc:creator>FarenAgency</dc:creator>
			<guid isPermaLink="false">91162@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thanks for the quick reply, &#60;/p&#62;
&#60;p&#62;The issue that I'm having is that I can not have jquery datepicker to work with your theme. I thought it had something to do with the way some script are included in footer, but it sees the problem is elsewhere.&#60;/p&#62;
&#60;p&#62;Here's what I'm enqueuing:&#60;/p&#62;
&#60;p&#62;wp_enqueue_style('jquery-ui', 'http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css');&#60;br /&#62;
wp_enqueue_script('jquery-ui-datepicker');&#60;/p&#62;
&#60;p&#62;From what I understand, there is a conflict with prettyphoto used in the theme.&#60;/p&#62;
&#60;p&#62;I do not get any js errors, but the popup does not appear in your theme. It appears if i switch to a different theme though.&#60;/p&#62;
&#60;p&#62;Could you look into this please?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Enqueued scripts inserted in the middle of the body"</title>
			<link>http://www.kriesi.at/support/topic/enqueued-scripts-inserted-in-the-middle-of-the-body#post-90948</link>
			<pubDate>Thu, 10 Jan 2013 11:46:52 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">90948@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Some javascripts are added into the footer section (before the closing body tag (I wouldn't call this &#34;in the middle&#34; though)). It's considered &#34;best practice&#34; to load/include the scripts at the end of the html document because it can speed up the loading process (including page generation &#38;amp; code execution) a bit. The wp_enqueue script function supports both locations (head or footer): &#60;a href=&#34;http://codex.wordpress.org/Function_Reference/wp_enqueue_script#Parameters&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/wp_enqueue_script#Parameters&#60;/a&#62; (in_footer parameter). &#60;/p&#62;
&#60;p&#62;If you want to change the location of the theme scripts open up functions.php and replace:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;wp_register_script( &#38;#39;avia-prettyPhoto&#38;#39;,  AVIA_BASE_URL.&#38;#39;js/prettyPhoto/js/jquery.prettyPhoto.js&#38;#39;, &#38;#39;jquery&#38;#39;, &#38;quot;3.0.1&#38;quot;, true);
		wp_register_script( &#38;#39;aviapoly-slider&#38;#39;,  AVIA_BASE_URL.&#38;#39;js/aviapoly2.js&#38;#39;, &#38;#39;jquery&#38;#39;, &#38;quot;1.0.0&#38;quot;, true);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;wp_register_script( &#38;#39;avia-prettyPhoto&#38;#39;,  AVIA_BASE_URL.&#38;#39;js/prettyPhoto/js/jquery.prettyPhoto.js&#38;#39;, &#38;#39;jquery&#38;#39;, &#38;quot;3.0.1&#38;quot;, false);
		wp_register_script( &#38;#39;aviapoly-slider&#38;#39;,  AVIA_BASE_URL.&#38;#39;js/aviapoly2.js&#38;#39;, &#38;#39;jquery&#38;#39;, &#38;quot;1.0.0&#38;quot;, false);&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>FarenAgency on "Enqueued scripts inserted in the middle of the body"</title>
			<link>http://www.kriesi.at/support/topic/enqueued-scripts-inserted-in-the-middle-of-the-body#post-90811</link>
			<pubDate>Wed, 09 Jan 2013 15:46:47 +0000</pubDate>
			<dc:creator>FarenAgency</dc:creator>
			<guid isPermaLink="false">90811@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi Devin, thank you very much for quick reply.&#60;/p&#62;
&#60;p&#62;An example can be observed here: &#60;a href=&#34;http://www.hiyorkdale.com/&#34; rel=&#34;nofollow&#34;&#62;http://www.hiyorkdale.com/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Disabling plugins didn't help.&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Devin on "Enqueued scripts inserted in the middle of the body"</title>
			<link>http://www.kriesi.at/support/topic/enqueued-scripts-inserted-in-the-middle-of-the-body#post-90643</link>
			<pubDate>Tue, 08 Jan 2013 19:54:44 +0000</pubDate>
			<dc:creator>Devin</dc:creator>
			<guid isPermaLink="false">90643@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey FarenAgency,&#60;/p&#62;
&#60;p&#62;Can we take a look at your site live? They should only be getting spit out at wp_head in the header.php file. Can you also try disabling all active plugins except for woocommerce and see if that fixes the issue?&#60;/p&#62;
&#60;p&#62;Regards,&#60;/p&#62;
&#60;p&#62;Devin
&#60;/p&#62;</description>
		</item>
		<item>
			<title>FarenAgency on "Enqueued scripts inserted in the middle of the body"</title>
			<link>http://www.kriesi.at/support/topic/enqueued-scripts-inserted-in-the-middle-of-the-body#post-90568</link>
			<pubDate>Tue, 08 Jan 2013 14:54:14 +0000</pubDate>
			<dc:creator>FarenAgency</dc:creator>
			<guid isPermaLink="false">90568@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;It appears that for some reason enqueued scripts are being inserted in the middle of the body instead of head, which causes issues. &#60;/p&#62;
&#60;p&#62;What may be causing this and can this be fixed?&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
