<?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: How to Add Javascript in a WordPress Post or Page</title> <atom:link href="http://www.tipsandtricks-hq.com/how-to-add-javascript-in-a-wordpress-post-or-page-1845/feed" rel="self" type="application/rss+xml" /><link>http://www.tipsandtricks-hq.com/how-to-add-javascript-in-a-wordpress-post-or-page-1845</link> <description>Tech tips, WordPress plugins, WordPress tweaks and Technical tips to build a better blog.</description> <lastBuildDate>Thu, 09 Feb 2012 03:41:53 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Mukesh Jat</title><link>http://www.tipsandtricks-hq.com/how-to-add-javascript-in-a-wordpress-post-or-page-1845/comment-page-1#comment-51608</link> <dc:creator>Mukesh Jat</dc:creator> <pubDate>Tue, 31 Jan 2012 14:24:22 +0000</pubDate> <guid
isPermaLink="false">http://www.tipsandtricks-hq.com/?p=1845#comment-51608</guid> <description>I was Looking for this one.. Thank You :)</description> <content:encoded><![CDATA[<p>I was Looking for this one.. Thank You <img
src='http://www.tipsandtricks-hq.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: Peter Fisher</title><link>http://www.tipsandtricks-hq.com/how-to-add-javascript-in-a-wordpress-post-or-page-1845/comment-page-1#comment-40713</link> <dc:creator>Peter Fisher</dc:creator> <pubDate>Sat, 29 Oct 2011 07:51:02 +0000</pubDate> <guid
isPermaLink="false">http://www.tipsandtricks-hq.com/?p=1845#comment-40713</guid> <description>That&#039;s great but as the custom_function() will be added to the footer it will be available to  to every post or page. This might be a good thing but could impact on the performance if not all the pages require it.  Lets say you need a JavaScript framework for a single post that you created. This might not be required for every page and it would waste a HTTP request.If you have the case were you only need to use certain JavaScript files for certain Word Press pages or posts then a better way is to define these conditions.I&#039;ve created a post on my blog which demonstrates how to include certain JavaScript files on certain pages.  http://blog.peterfisher.me.uk/2011/10/01/include-javascript-files-on-certain-wordpress-pages/Of course this is done in the header.php but could be altered for the footer</description> <content:encoded><![CDATA[<p>That&#8217;s great but as the custom_function() will be added to the footer it will be available to  to every post or page. This might be a good thing but could impact on the performance if not all the pages require it.  Lets say you need a JavaScript framework for a single post that you created. This might not be required for every page and it would waste a HTTP request.</p><p>If you have the case were you only need to use certain JavaScript files for certain Word Press pages or posts then a better way is to define these conditions.</p><p>I&#8217;ve created a post on my blog which demonstrates how to include certain JavaScript files on certain pages. <a
href="http://blog.peterfisher.me.uk/2011/10/01/include-javascript-files-on-certain-wordpress-pages/" rel="nofollow">http://blog.peterfisher.me.uk/2011/10/01/include-javascript-files-on-certain-wordpress-pages/</a></p><p>Of course this is done in the header.php but could be altered for the footer</p> ]]></content:encoded> </item> <item><title>By: james</title><link>http://www.tipsandtricks-hq.com/how-to-add-javascript-in-a-wordpress-post-or-page-1845/comment-page-1#comment-32204</link> <dc:creator>james</dc:creator> <pubDate>Tue, 06 Sep 2011 00:44:02 +0000</pubDate> <guid
isPermaLink="false">http://www.tipsandtricks-hq.com/?p=1845#comment-32204</guid> <description>Worked perfectly, thanks!</description> <content:encoded><![CDATA[<p>Worked perfectly, thanks!</p> ]]></content:encoded> </item> <item><title>By: admin</title><link>http://www.tipsandtricks-hq.com/how-to-add-javascript-in-a-wordpress-post-or-page-1845/comment-page-1#comment-16314</link> <dc:creator>admin</dc:creator> <pubDate>Thu, 04 Nov 2010 03:20:15 +0000</pubDate> <guid
isPermaLink="false">http://www.tipsandtricks-hq.com/?p=1845#comment-16314</guid> <description>Yeah you can use that in the header.</description> <content:encoded><![CDATA[<p>Yeah you can use that in the header.</p> ]]></content:encoded> </item> <item><title>By: Maria</title><link>http://www.tipsandtricks-hq.com/how-to-add-javascript-in-a-wordpress-post-or-page-1845/comment-page-1#comment-16290</link> <dc:creator>Maria</dc:creator> <pubDate>Wed, 03 Nov 2010 14:15:55 +0000</pubDate> <guid
isPermaLink="false">http://www.tipsandtricks-hq.com/?p=1845#comment-16290</guid> <description>Hi,Thank you so much for explaining how to add javascript.
But i still have 1 more question about it.
Sometimes a javascript comes with a code to put in the bodytag (onload=)Can i just put that in de bodytag in the header.php?Thanks in advance</description> <content:encoded><![CDATA[<p>Hi,</p><p>Thank you so much for explaining how to add javascript.<br
/> But i still have 1 more question about it.<br
/> Sometimes a javascript comes with a code to put in the bodytag (onload=)</p><p>Can i just put that in de bodytag in the header.php?</p><p>Thanks in advance</p> ]]></content:encoded> </item> <item><title>By: admin</title><link>http://www.tipsandtricks-hq.com/how-to-add-javascript-in-a-wordpress-post-or-page-1845/comment-page-1#comment-12228</link> <dc:creator>admin</dc:creator> <pubDate>Sun, 30 May 2010 12:47:49 +0000</pubDate> <guid
isPermaLink="false">http://www.tipsandtricks-hq.com/?p=1845#comment-12228</guid> <description>Yeah you can use JQuery inside posts too. As long as you have included the JQuery library in the page you should be fine.</description> <content:encoded><![CDATA[<p>Yeah you can use JQuery inside posts too. As long as you have included the JQuery library in the page you should be fine.</p> ]]></content:encoded> </item> <item><title>By: Mark D</title><link>http://www.tipsandtricks-hq.com/how-to-add-javascript-in-a-wordpress-post-or-page-1845/comment-page-1#comment-12215</link> <dc:creator>Mark D</dc:creator> <pubDate>Sat, 29 May 2010 14:24:42 +0000</pubDate> <guid
isPermaLink="false">http://www.tipsandtricks-hq.com/?p=1845#comment-12215</guid> <description>Do you know if it&#039;s possible to use jQuery inside a post? I mean if I wanted to use some of jQuery UI functionality would it be possible?Also it&#039;s worth mentioning that some ad networks are now trying to get you to use javascript inline when you post. What are your thoughts on that?
.-= Mark D&#180;s last blog ..&lt;a href=&quot;http://www.sobloggy.com/2010/05/summer-ready/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=summer-ready&quot; rel=&quot;nofollow&quot;&gt;Summer ready&lt;/a&gt; =-.</description> <content:encoded><![CDATA[<p>Do you know if it&#8217;s possible to use jQuery inside a post? I mean if I wanted to use some of jQuery UI functionality would it be possible?</p><p>Also it&#8217;s worth mentioning that some ad networks are now trying to get you to use javascript inline when you post. What are your thoughts on that?<br
/> .-= Mark D&#180;s last blog ..<a
href="http://www.sobloggy.com/2010/05/summer-ready/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=summer-ready" rel="nofollow">Summer ready</a> =-.</p> ]]></content:encoded> </item> <item><title>By: Rav</title><link>http://www.tipsandtricks-hq.com/how-to-add-javascript-in-a-wordpress-post-or-page-1845/comment-page-1#comment-9668</link> <dc:creator>Rav</dc:creator> <pubDate>Sat, 23 Jan 2010 18:44:31 +0000</pubDate> <guid
isPermaLink="false">http://www.tipsandtricks-hq.com/?p=1845#comment-9668</guid> <description>im trying to add this function on my wordpress page- its a click to reveal funcition as shown on the link below. Tried everything, cant seem to get it to work on a wordpress page, any ideas?
http://www.nisusnewmedia.com/reveal/</description> <content:encoded><![CDATA[<p>im trying to add this function on my wordpress page- its a click to reveal funcition as shown on the link below. Tried everything, cant seem to get it to work on a wordpress page, any ideas?<br
/> <a
href="http://www.nisusnewmedia.com/reveal/" rel="nofollow">http://www.nisusnewmedia.com/reveal/</a></p> ]]></content:encoded> </item> <item><title>By: Wordpress Theme : Adsense Problem - Hot Scripts Forums</title><link>http://www.tipsandtricks-hq.com/how-to-add-javascript-in-a-wordpress-post-or-page-1845/comment-page-1#comment-9640</link> <dc:creator>Wordpress Theme : Adsense Problem - Hot Scripts Forums</dc:creator> <pubDate>Wed, 20 Jan 2010 23:49:18 +0000</pubDate> <guid
isPermaLink="false">http://www.tipsandtricks-hq.com/?p=1845#comment-9640</guid> <description>[...] How to Add Javascript in WordPress Post or Page &#124; Tips and Tricks [...]</description> <content:encoded><![CDATA[<p>[...] How to Add Javascript in WordPress Post or Page | Tips and Tricks [...]</p> ]]></content:encoded> </item> <item><title>By: cool</title><link>http://www.tipsandtricks-hq.com/how-to-add-javascript-in-a-wordpress-post-or-page-1845/comment-page-1#comment-9453</link> <dc:creator>cool</dc:creator> <pubDate>Sat, 09 Jan 2010 05:32:22 +0000</pubDate> <guid
isPermaLink="false">http://www.tipsandtricks-hq.com/?p=1845#comment-9453</guid> <description>ok, just remove line breaks from your js code.from:
&quot; js code line1;
js code line 2;
js code line 3;&quot;to:&quot; js code line1;  js code line 2; js code line 3;&quot;</description> <content:encoded><![CDATA[<p>ok, just remove line breaks from your js code.</p><p>from:<br
/> &#8221; js code line1;<br
/> js code line 2;<br
/> js code line 3;&#8221;</p><p>to:</p><p>&#8221; js code line1;  js code line 2; js code line 3;&#8221;</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: www.tipsandtricks-hq.com @ 2012-02-09 00:15:19 -->
