<?xml version="1.0" encoding="UTF-8"?><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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>Comments on: Include Common JavaScript Libraries in Your WordPress Theme</title>
	<atom:link href="https://www.webmaster-source.com/2008/11/12/include-common-javascript-libraries-in-your-wordpress-theme/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.webmaster-source.com/2008/11/12/include-common-javascript-libraries-in-your-wordpress-theme/</link>
	<description>Useful Resources For Webmasters</description>
	<lastBuildDate>Mon, 06 Apr 2026 13:53:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.42</generator>
	<item>
		<title>By: Matt</title>
		<link>https://www.webmaster-source.com/2008/11/12/include-common-javascript-libraries-in-your-wordpress-theme/#comment-5898</link>
		<dc:creator><![CDATA[Matt]]></dc:creator>
		<pubDate>Mon, 22 Dec 2008 21:23:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=1010#comment-5898</guid>
		<description><![CDATA[I don&#039;t know. It certainly is strange. I&#039;ve never seen something like it before. But if you include the script manually, instead of with wp_enqueue_script, it works, doesn&#039;t it? Maybe you should just leave it be since it works?]]></description>
		<content:encoded><![CDATA[<p>I don&#8217;t know. It certainly is strange. I&#8217;ve never seen something like it before. But if you include the script manually, instead of with wp_enqueue_script, it works, doesn&#8217;t it? Maybe you should just leave it be since it works?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Shepherd</title>
		<link>https://www.webmaster-source.com/2008/11/12/include-common-javascript-libraries-in-your-wordpress-theme/#comment-5864</link>
		<dc:creator><![CDATA[Richard Shepherd]]></dc:creator>
		<pubDate>Mon, 22 Dec 2008 09:13:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=1010#comment-5864</guid>
		<description><![CDATA[Dagnammit! That didn&#039;t work. The quotes appear fine.

If the code reads:
 
&lt;code&gt;&lt;script src=&quot;/javascript/jquery-1.2.6.min.js&quot;&gt;&lt;/script&gt;
&lt;script&gt; 
  jQuery(document).ready(function(){
    jQuery(document.body).click(function () {
        jQuery(&quot;#Redirect&quot;).slideUp();
    });
  });
&lt;/script&gt;
&lt;/code&gt;
It works fine, but if it reads
 
&lt;code&gt;&lt;?php wp_enqueue_script(&#039;jquery&#039;); ?&gt;
&lt;script&gt; 
  jQuery(document).ready(function(){
    jQuery(document.body).click(function () {
        jQuery(&quot;#Redirect&quot;).slideUp();
    });
  });
&lt;/script&gt;
&lt;/code&gt;
It doesn&#039;t work at all. And, to confirm, this comes before the 
&lt;code&gt;
&lt; wp_head(); ?&gt;
&lt;/code&gt;
line of code. Any other suggestions? Thanks!]]></description>
		<content:encoded><![CDATA[<p>Dagnammit! That didn&#8217;t work. The quotes appear fine.</p>
<p>If the code reads:</p>
<p><code>&lt;script src="/javascript/jquery-1.2.6.min.js"&gt;&lt;/script&gt;<br />
&lt;script&gt;<br />
  jQuery(document).ready(function(){<br />
    jQuery(document.body).click(function () {<br />
        jQuery("#Redirect").slideUp();<br />
    });<br />
  });<br />
&lt;/script&gt;<br />
</code><br />
It works fine, but if it reads</p>
<p><code>&lt;?php wp_enqueue_script('jquery'); ?&gt;<br />
&lt;script&gt;<br />
  jQuery(document).ready(function(){<br />
    jQuery(document.body).click(function () {<br />
        jQuery("#Redirect").slideUp();<br />
    });<br />
  });<br />
&lt;/script&gt;<br />
</code><br />
It doesn&#8217;t work at all. And, to confirm, this comes before the<br />
<code><br />
&lt; wp_head(); ?&gt;<br />
</code><br />
line of code. Any other suggestions? Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>https://www.webmaster-source.com/2008/11/12/include-common-javascript-libraries-in-your-wordpress-theme/#comment-5466</link>
		<dc:creator><![CDATA[Matt]]></dc:creator>
		<pubDate>Fri, 19 Dec 2008 19:12:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=1010#comment-5466</guid>
		<description><![CDATA[Hang on a minute...did you copy and paste the line of code from the post here? If you did, that could be part of the problem. WordPress has a tendency to change single-quotes to curly-single-quotes, which may cause problems code-wise. Try using wp_enqueue_script again, but retype the quotes yourself.]]></description>
		<content:encoded><![CDATA[<p>Hang on a minute&#8230;did you copy and paste the line of code from the post here? If you did, that could be part of the problem. WordPress has a tendency to change single-quotes to curly-single-quotes, which may cause problems code-wise. Try using wp_enqueue_script again, but retype the quotes yourself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Shepherd</title>
		<link>https://www.webmaster-source.com/2008/11/12/include-common-javascript-libraries-in-your-wordpress-theme/#comment-5454</link>
		<dc:creator><![CDATA[Richard Shepherd]]></dc:creator>
		<pubDate>Fri, 19 Dec 2008 17:55:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=1010#comment-5454</guid>
		<description><![CDATA[It works with a direct link to the .js file (which is what you can see) but if I change that direct link to &lt;?php wp_enqueue_script(&#039;jquery&#039;); ?&gt; it doesn&#039;t work.]]></description>
		<content:encoded><![CDATA[<p>It works with a direct link to the .js file (which is what you can see) but if I change that direct link to &lt;?php wp_enqueue_script(&#8216;jquery&#8217;); ?&gt; it doesn&#8217;t work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>https://www.webmaster-source.com/2008/11/12/include-common-javascript-libraries-in-your-wordpress-theme/#comment-5453</link>
		<dc:creator><![CDATA[Matt]]></dc:creator>
		<pubDate>Fri, 19 Dec 2008 17:53:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=1010#comment-5453</guid>
		<description><![CDATA[It seems to be working for me. I click the close link and the div slides up and disappears. Are you still having a problem?]]></description>
		<content:encoded><![CDATA[<p>It seems to be working for me. I click the close link and the div slides up and disappears. Are you still having a problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Shepherd</title>
		<link>https://www.webmaster-source.com/2008/11/12/include-common-javascript-libraries-in-your-wordpress-theme/#comment-5274</link>
		<dc:creator><![CDATA[Richard Shepherd]]></dc:creator>
		<pubDate>Thu, 18 Dec 2008 17:06:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=1010#comment-5274</guid>
		<description><![CDATA[Sorry, my code was eaten up because I forgot the &lt;code&gt; tags. Please see the source code of http://www.growlingranger.com/?r=1 for the problem code.&lt;/code&gt;]]></description>
		<content:encoded><![CDATA[<p>Sorry, my code was eaten up because I forgot the <code> tags. Please see the source code of <a href='http://www.growlingranger.com/?r=1' rel='nofollow'>http://www.growlingranger.com/?r=1</a> for the problem code.</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Shepherd</title>
		<link>https://www.webmaster-source.com/2008/11/12/include-common-javascript-libraries-in-your-wordpress-theme/#comment-5240</link>
		<dc:creator><![CDATA[Richard Shepherd]]></dc:creator>
		<pubDate>Thu, 18 Dec 2008 10:14:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=1010#comment-5240</guid>
		<description><![CDATA[Help. I&#039;m going nuts trying to get this to work. Here is my code as it appears at http://www.growlingranger.com/?r=1 (the r=1 bit is important):



  jQuery(document).ready(function(){
    jQuery(document.body).click(function () {
        jQuery(&quot;#Redirect&quot;).slideUp();
      
    });

  });


And that doesn&#039;t work at all.

Replace 

with
&lt;script src=&quot;/javascript/jquery-1.2.6.min.js&quot;&gt;

and it does.

This happens before , and before the Wordpress Flickr Manager calls these three lines:





Thanks for any help and advice you might have!! :)]]></description>
		<content:encoded><![CDATA[<p>Help. I&#8217;m going nuts trying to get this to work. Here is my code as it appears at <a href="http://www.growlingranger.com/?r=1" rel="nofollow">http://www.growlingranger.com/?r=1</a> (the r=1 bit is important):</p>
<p>  jQuery(document).ready(function(){<br />
    jQuery(document.body).click(function () {<br />
        jQuery(&#8220;#Redirect&#8221;).slideUp();</p>
<p>    });</p>
<p>  });</p>
<p>And that doesn&#8217;t work at all.</p>
<p>Replace </p>
<p>with<br />
&lt;script src=&#8221;/javascript/jquery-1.2.6.min.js&#8221;&gt;</p>
<p>and it does.</p>
<p>This happens before , and before the WordPress Flickr Manager calls these three lines:</p>
<p>Thanks for any help and advice you might have!! <img src="https://www.webmaster-source.com/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jauhari</title>
		<link>https://www.webmaster-source.com/2008/11/12/include-common-javascript-libraries-in-your-wordpress-theme/#comment-4315</link>
		<dc:creator><![CDATA[Jauhari]]></dc:creator>
		<pubDate>Sat, 06 Dec 2008 14:13:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=1010#comment-4315</guid>
		<description><![CDATA[Just Perfect for me... thanks for this ;)]]></description>
		<content:encoded><![CDATA[<p>Just Perfect for me&#8230; thanks for this <img src="https://www.webmaster-source.com/wp-includes/images/smilies/icon_wink.gif" alt=";)" class="wp-smiley" /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>https://www.webmaster-source.com/2008/11/12/include-common-javascript-libraries-in-your-wordpress-theme/#comment-3760</link>
		<dc:creator><![CDATA[Matt]]></dc:creator>
		<pubDate>Wed, 12 Nov 2008 21:45:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=1010#comment-3760</guid>
		<description><![CDATA[@Steven, let&#039;s hope I can do it again... :D&lt;br /&gt;]]></description>
		<content:encoded><![CDATA[<p>@Steven, let&#8217;s hope I can do it again&#8230; <img src="https://www.webmaster-source.com/wp-includes/images/smilies/icon_biggrin.gif" alt=":D" class="wp-smiley" /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven Clark</title>
		<link>https://www.webmaster-source.com/2008/11/12/include-common-javascript-libraries-in-your-wordpress-theme/#comment-3757</link>
		<dc:creator><![CDATA[Steven Clark]]></dc:creator>
		<pubDate>Wed, 12 Nov 2008 20:40:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=1010#comment-3757</guid>
		<description><![CDATA[Matt, OK you got me this time. Something I didn&#039;t realise about WordPress. Thanks, this will come in very handy.]]></description>
		<content:encoded><![CDATA[<p>Matt, OK you got me this time. Something I didn&#8217;t realise about WordPress. Thanks, this will come in very handy.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/


Served from: www.webmaster-source.com @ 2026-04-21 04:10:39 by W3 Total Cache
-->