<?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: Contextually changing your theme&#8217;s stylesheet</title>
	<atom:link href="http://justintadlock.com/archives/2009/07/27/contextually-changing-your-themes-stylesheet/feed" rel="self" type="application/rss+xml" />
	<link>http://justintadlock.com/archives/2009/07/27/contextually-changing-your-themes-stylesheet</link>
	<description>Life, Blogging, and WordPress</description>
	<lastBuildDate>Wed, 23 May 2012 07:51:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Chris</title>
		<link>http://justintadlock.com/archives/2009/07/27/contextually-changing-your-themes-stylesheet#comment-416493</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 09 Sep 2011 23:43:40 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1767#comment-416493</guid>
		<description>Hi again, after reading Thomas&#039; post, I wonder if I need to be using the hybrid theme - I am developing my own</description>
		<content:encoded><![CDATA[<p>Hi again, after reading Thomas&#8217; post, I wonder if I need to be using the hybrid theme &#8211; I am developing my own</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://justintadlock.com/archives/2009/07/27/contextually-changing-your-themes-stylesheet#comment-416475</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 09 Sep 2011 23:25:49 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1767#comment-416475</guid>
		<description>I am hitting a wall trying to do this (in 3.2.1). I get the following notice:Undefined variable: stylesheet_uri  and neither of the two stylesheets is loading - instead when I look at the source code I see the default style.css?  I also don&#039;t understand the following:
$stylesheet_uri, $stylesheet_dir_uri -
do I need to define each as:
$stylesheet_uri = stylesheet_uri();
$stylesheet_dir_uri = stylesheet_dir_uri();
Please help - this is actually the best solution for me since I want to change the layout depending on the page... thanks!</description>
		<content:encoded><![CDATA[<p>I am hitting a wall trying to do this (in 3.2.1). I get the following notice:Undefined variable: stylesheet_uri  and neither of the two stylesheets is loading &#8211; instead when I look at the source code I see the default style.css?  I also don&#8217;t understand the following:<br />
$stylesheet_uri, $stylesheet_dir_uri -<br />
do I need to define each as:<br />
$stylesheet_uri = stylesheet_uri();<br />
$stylesheet_dir_uri = stylesheet_dir_uri();<br />
Please help &#8211; this is actually the best solution for me since I want to change the layout depending on the page&#8230; thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Gam Nielsen</title>
		<link>http://justintadlock.com/archives/2009/07/27/contextually-changing-your-themes-stylesheet#comment-383394</link>
		<dc:creator>Thomas Gam Nielsen</dc:creator>
		<pubDate>Fri, 22 Jul 2011 10:58:14 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1767#comment-383394</guid>
		<description>Hi guys

Is it possible to load a specific style file for a page and all the children pages related to that page?

&lt;pre&gt;&lt;code&gt;if ( is_page( &#039;about&#039; ) ) (AND THEN SOMETHING WITH ALL CHILDREN PAGES)
		$stylesheet_uri = $stylesheet_dir_uri . &#039;/style-about.css&#039;; &lt;/code&gt;&lt;/pre&gt;

Just wondering...

// Thomas</description>
		<content:encoded><![CDATA[<p>Hi guys</p>
<p>Is it possible to load a specific style file for a page and all the children pages related to that page?</p>
<pre><code>if ( is_page( 'about' ) ) (AND THEN SOMETHING WITH ALL CHILDREN PAGES)
		$stylesheet_uri = $stylesheet_dir_uri . '/style-about.css'; </code></pre>
<p>Just wondering&#8230;</p>
<p>// Thomas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will</title>
		<link>http://justintadlock.com/archives/2009/07/27/contextually-changing-your-themes-stylesheet#comment-259030</link>
		<dc:creator>Will</dc:creator>
		<pubDate>Fri, 03 Dec 2010 17:23:41 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1767#comment-259030</guid>
		<description>Hi 
How about trouble with caching? will it cause trouble. One of my asp.net themes always have trouble with caching. Any resolutions?</description>
		<content:encoded><![CDATA[<p>Hi<br />
How about trouble with caching? will it cause trouble. One of my asp.net themes always have trouble with caching. Any resolutions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: VB .Net Tutorial</title>
		<link>http://justintadlock.com/archives/2009/07/27/contextually-changing-your-themes-stylesheet#comment-206826</link>
		<dc:creator>VB .Net Tutorial</dc:creator>
		<pubDate>Tue, 22 Jun 2010 07:26:55 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1767#comment-206826</guid>
		<description>Thanks the idea of switching the styles as per the contxt is nice. Have you ever experienced issues with cache when switching themes.

How about bypassing the cache. I always had problems if the different stylesheet is already in cache, then the theme wont be switched properly. I guess i need some sort of different names to store into cache.</description>
		<content:encoded><![CDATA[<p>Thanks the idea of switching the styles as per the contxt is nice. Have you ever experienced issues with cache when switching themes.</p>
<p>How about bypassing the cache. I always had problems if the different stylesheet is already in cache, then the theme wont be switched properly. I guess i need some sort of different names to store into cache.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Pelland</title>
		<link>http://justintadlock.com/archives/2009/07/27/contextually-changing-your-themes-stylesheet#comment-170814</link>
		<dc:creator>Scott Pelland</dc:creator>
		<pubDate>Thu, 24 Dec 2009 00:15:29 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1767#comment-170814</guid>
		<description>Thanks, Justin. I&#039;ve been looking for a solution just like this for some time. I also was wondering if you had given any thought to Dan&#039;s question above?</description>
		<content:encoded><![CDATA[<p>Thanks, Justin. I&#8217;ve been looking for a solution just like this for some time. I also was wondering if you had given any thought to Dan&#8217;s question above?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andri</title>
		<link>http://justintadlock.com/archives/2009/07/27/contextually-changing-your-themes-stylesheet#comment-169420</link>
		<dc:creator>andri</dc:creator>
		<pubDate>Thu, 17 Dec 2009 15:04:21 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1767#comment-169420</guid>
		<description>I need more tips about hybrid theme... thanks for this tips :)</description>
		<content:encoded><![CDATA[<p>I need more tips about hybrid theme&#8230; thanks for this tips <img src='http://justintadlock.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam Lehti</title>
		<link>http://justintadlock.com/archives/2009/07/27/contextually-changing-your-themes-stylesheet#comment-161998</link>
		<dc:creator>Sam Lehti</dc:creator>
		<pubDate>Wed, 11 Nov 2009 18:32:31 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1767#comment-161998</guid>
		<description>This really is handy looking example. Never knew it was possible with WP itself. Have been using thesis to get things done but somedays want to use another theme and if it works with every theme I could use it instead of hacking every css file by hand.</description>
		<content:encoded><![CDATA[<p>This really is handy looking example. Never knew it was possible with WP itself. Have been using thesis to get things done but somedays want to use another theme and if it works with every theme I could use it instead of hacking every css file by hand.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Smart</title>
		<link>http://justintadlock.com/archives/2009/07/27/contextually-changing-your-themes-stylesheet#comment-150144</link>
		<dc:creator>Dan Smart</dc:creator>
		<pubDate>Wed, 02 Sep 2009 05:50:50 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1767#comment-150144</guid>
		<description>Thanks for the post. I&#039;ve been looking for a solution like this, however I&#039;m still  trying to create a solution that doesn&#039;t require you to have a list of pages in the function - it would be nice to be able to grab this from the custom page or something similar so that it&#039;s totally extensible rather than dependent on you adding to the list of pages with is_page().

Any thoughts?</description>
		<content:encoded><![CDATA[<p>Thanks for the post. I&#8217;ve been looking for a solution like this, however I&#8217;m still  trying to create a solution that doesn&#8217;t require you to have a list of pages in the function &#8211; it would be nice to be able to grab this from the custom page or something similar so that it&#8217;s totally extensible rather than dependent on you adding to the list of pages with is_page().</p>
<p>Any thoughts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rexsky</title>
		<link>http://justintadlock.com/archives/2009/07/27/contextually-changing-your-themes-stylesheet#comment-148695</link>
		<dc:creator>rexsky</dc:creator>
		<pubDate>Wed, 26 Aug 2009 01:14:36 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1767#comment-148695</guid>
		<description>hey Justin,great job.I just learn div and css last month..thanks for your sharing...learned a lot from your blog....again thanks...
:)</description>
		<content:encoded><![CDATA[<p>hey Justin,great job.I just learn div and css last month..thanks for your sharing&#8230;learned a lot from your blog&#8230;.again thanks&#8230;<br />
 <img src='http://justintadlock.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

