<?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: A Quick Wordpress Function to Add a Dynamic Body Id/Class to Your Theme</title> <atom:link href="http://papertreedesign.com/a-quick-wordpress-function-to-add-a-dynamic-body-idclass-to-your-theme/feed/" rel="self" type="application/rss+xml" /><link>http://papertreedesign.com/a-quick-wordpress-function-to-add-a-dynamic-body-idclass-to-your-theme/</link> <description>Web Design and Development</description> <lastBuildDate>Sat, 02 Jan 2010 22:55:15 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: Nils</title><link>http://papertreedesign.com/a-quick-wordpress-function-to-add-a-dynamic-body-idclass-to-your-theme/comment-page-1/#comment-641</link> <dc:creator>Nils</dc:creator> <pubDate>Sat, 31 Jan 2009 06:18:09 +0000</pubDate> <guid
isPermaLink="false">http://papertreedesign.com/?p=346#comment-641</guid> <description>@Jeremy -
So the way i asked does work great, thank you.And the &#039;is_page&#039; function specifically looks for this:
&lt;cite&gt;is_page(&#039;about-me&#039;)
When the Page with a post_name (slug) of &quot;about-me&quot; is being displayed. &lt;/cite&gt;This is the function that i made with your tutorial and help.
&lt;code&gt;&lt;/code&gt;</description> <content:encoded><![CDATA[<p>@Jeremy -<br
/> So the way i asked does work great, thank you.</p><p>And the &#8216;is_page&#8217; function specifically looks for this:<br
/><cite>is_page(&#8216;about-me&#8217;)<br
/> When the Page with a post_name (slug) of &#8220;about-me&#8221; is being displayed.</cite></p><p>This is the function that i made with your tutorial and help.<br
/> <code></p><p></code></p> ]]></content:encoded> </item> <item><title>By: Jeremy</title><link>http://papertreedesign.com/a-quick-wordpress-function-to-add-a-dynamic-body-idclass-to-your-theme/comment-page-1/#comment-636</link> <dc:creator>Jeremy</dc:creator> <pubDate>Fri, 30 Jan 2009 14:51:46 +0000</pubDate> <guid
isPermaLink="false">http://papertreedesign.com/?p=346#comment-636</guid> <description>@Christy Glad to hear it works and glad I could help out. I was pretty certain it would work but as I said it was untested so thanks for dropping by and letting me know.</description> <content:encoded><![CDATA[<p>@Christy Glad to hear it works and glad I could help out. I was pretty certain it would work but as I said it was untested so thanks for dropping by and letting me know.</p> ]]></content:encoded> </item> <item><title>By: Christy</title><link>http://papertreedesign.com/a-quick-wordpress-function-to-add-a-dynamic-body-idclass-to-your-theme/comment-page-1/#comment-635</link> <dc:creator>Christy</dc:creator> <pubDate>Fri, 30 Jan 2009 14:31:59 +0000</pubDate> <guid
isPermaLink="false">http://papertreedesign.com/?p=346#comment-635</guid> <description>The last comment #5 was exactly what I was looking for. And it works perfectly. Thank you!</description> <content:encoded><![CDATA[<p>The last comment #5 was exactly what I was looking for. And it works perfectly. Thank you!</p> ]]></content:encoded> </item> <item><title>By: Jeremy</title><link>http://papertreedesign.com/a-quick-wordpress-function-to-add-a-dynamic-body-idclass-to-your-theme/comment-page-1/#comment-627</link> <dc:creator>Jeremy</dc:creator> <pubDate>Thu, 29 Jan 2009 17:18:31 +0000</pubDate> <guid
isPermaLink="false">http://papertreedesign.com/?p=346#comment-627</guid> <description>@Nils - Good question, you could either use the given name of the page like this:
if is_page(&#039;page-name&#039;)
or you could use the page ID like this:
if is_page(&#039;12&#039;)
or I believe you could use the to check for a specific template
if is_page_template(&#039;extra-page.php&#039;)
For more information on WordPress Conditional Tags check this page &lt;a href=&quot;http://codex.wordpress.org/Conditional_Tags&quot; rel=&quot;nofollow&quot;&gt;http://codex.wordpress.org/Conditional_Tags&lt;/a&gt; and let me know what works for you as I do not actually have the time to test that right now, but I believe that is what you are looking for.</description> <content:encoded><![CDATA[<p>@Nils &#8211; Good question, you could either use the given name of the page like this:<br
/> if is_page(&#8216;page-name&#8217;)<br
/> or you could use the page ID like this:<br
/> if is_page(&#8216;12&#8242;)<br
/> or I believe you could use the to check for a specific template<br
/> if is_page_template(&#8216;extra-page.php&#8217;)<br
/> For more information on WordPress Conditional Tags check this page <a
href="http://codex.wordpress.org/Conditional_Tags" rel="nofollow">http://codex.wordpress.org/Conditional_Tags</a> and let me know what works for you as I do not actually have the time to test that right now, but I believe that is what you are looking for.</p> ]]></content:encoded> </item> <item><title>By: Nils</title><link>http://papertreedesign.com/a-quick-wordpress-function-to-add-a-dynamic-body-idclass-to-your-theme/comment-page-1/#comment-626</link> <dc:creator>Nils</dc:creator> <pubDate>Thu, 29 Jan 2009 16:58:35 +0000</pubDate> <guid
isPermaLink="false">http://papertreedesign.com/?p=346#comment-626</guid> <description>I was just wondering how you would apply this with custom page templates.So if i added a custom page template called &quot;extra page&quot;, what wordpress functions would i use to search specific pages?</description> <content:encoded><![CDATA[<p>I was just wondering how you would apply this with custom page templates.</p><p>So if i added a custom page template called &#8220;extra page&#8221;, what wordpress functions would i use to search specific pages?</p> ]]></content:encoded> </item> <item><title>By: Tim</title><link>http://papertreedesign.com/a-quick-wordpress-function-to-add-a-dynamic-body-idclass-to-your-theme/comment-page-1/#comment-523</link> <dc:creator>Tim</dc:creator> <pubDate>Tue, 13 Jan 2009 14:47:05 +0000</pubDate> <guid
isPermaLink="false">http://papertreedesign.com/?p=346#comment-523</guid> <description>Jeremy, this is a clever approach.  An idea like this just might be a foundation for a plugin that allows WP sites to have a &quot;theme switcher&quot;... for example, to allow users to click on an accessibility link that would alter a site&#039;s theme with enhanced contrast and larger font size.  Just an idea.I also noticed that you mentioned you have very little free time in posting your thisdayindesign post.  Are you in need of extra WP coding hands??</description> <content:encoded><![CDATA[<p>Jeremy, this is a clever approach.  An idea like this just might be a foundation for a plugin that allows WP sites to have a &#8220;theme switcher&#8221;&#8230; for example, to allow users to click on an accessibility link that would alter a site&#8217;s theme with enhanced contrast and larger font size.  Just an idea.</p><p>I also noticed that you mentioned you have very little free time in posting your thisdayindesign post.  Are you in need of extra WP coding hands??</p> ]]></content:encoded> </item> <item><title>By: Jeremy</title><link>http://papertreedesign.com/a-quick-wordpress-function-to-add-a-dynamic-body-idclass-to-your-theme/comment-page-1/#comment-499</link> <dc:creator>Jeremy</dc:creator> <pubDate>Mon, 05 Jan 2009 22:22:47 +0000</pubDate> <guid
isPermaLink="false">http://papertreedesign.com/?p=346#comment-499</guid> <description>No problem, glad I could offer the idea. I did it the other way for quite a while which is just as useful but as I have started to use this quite a bit more often I finally realized it just made sense to drop it in the functions file, keeps it a bit more organized especially if you are using more than #home and #single. Nice thing is that it is now pretty portable and easy to use on the next project.</description> <content:encoded><![CDATA[<p>No problem, glad I could offer the idea. I did it the other way for quite a while which is just as useful but as I have started to use this quite a bit more often I finally realized it just made sense to drop it in the functions file, keeps it a bit more organized especially if you are using more than #home and #single. Nice thing is that it is now pretty portable and easy to use on the next project.</p> ]]></content:encoded> </item> <item><title>By: Ahmed</title><link>http://papertreedesign.com/a-quick-wordpress-function-to-add-a-dynamic-body-idclass-to-your-theme/comment-page-1/#comment-498</link> <dc:creator>Ahmed</dc:creator> <pubDate>Mon, 05 Jan 2009 20:39:55 +0000</pubDate> <guid
isPermaLink="false">http://papertreedesign.com/?p=346#comment-498</guid> <description>I was doing this the &quot;hard way&quot;, and never thought of using a function..
Thanks for the tip!</description> <content:encoded><![CDATA[<p>I was doing this the &#8220;hard way&#8221;, and never thought of using a function..<br
/> Thanks for the tip!</p> ]]></content:encoded> </item> </channel> </rss>
<!-- This site's performance optimized by W3 Total Cache. Dramatically improve the speed and reliability of your blog!

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 5/15 queries in 0.147 seconds using disk

Served from: aamoiaqska.c05.gridserver.com @ 2010-03-20 00:58:29 -->