<?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: Different Stylesheet For Different WordPress Categories</title> <atom:link href="http://techbasedmarketing.com/blog/different-stylesheet-for-different-wordpress-categories/744/feed/" rel="self" type="application/rss+xml" /><link>http://techbasedmarketing.com/blog/different-stylesheet-for-different-wordpress-categories/744/</link> <description></description> <lastBuildDate>Thu, 03 May 2012 19:52:27 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>By: Lynette</title><link>http://techbasedmarketing.com/blog/different-stylesheet-for-different-wordpress-categories/744/comment-page-1/#comment-1338</link> <dc:creator>Lynette</dc:creator> <pubDate>Mon, 24 Nov 2008 15:48:28 +0000</pubDate> <guid
isPermaLink="false">http://techbasedmarketing.com/blog/different-stylesheet-for-different-wordpress-categories/974#comment-1338</guid> <description>Hello again Parody, you&#039;re most welcome.</description> <content:encoded><![CDATA[<p>Hello again Parody, you&#8217;re most welcome.</p> ]]></content:encoded> </item> <item><title>By: Lynette</title><link>http://techbasedmarketing.com/blog/different-stylesheet-for-different-wordpress-categories/744/comment-page-1/#comment-3827</link> <dc:creator>Lynette</dc:creator> <pubDate>Mon, 24 Nov 2008 15:48:00 +0000</pubDate> <guid
isPermaLink="false">http://techbasedmarketing.com/blog/different-stylesheet-for-different-wordpress-categories/974#comment-3827</guid> <description>Hello again Parody, you&#039;re most welcome.</description> <content:encoded><![CDATA[<p>Hello again Parody, you&#8217;re most welcome.</p> ]]></content:encoded> </item> <item><title>By: Parody</title><link>http://techbasedmarketing.com/blog/different-stylesheet-for-different-wordpress-categories/744/comment-page-1/#comment-1339</link> <dc:creator>Parody</dc:creator> <pubDate>Mon, 24 Nov 2008 04:01:20 +0000</pubDate> <guid
isPermaLink="false">http://techbasedmarketing.com/blog/different-stylesheet-for-different-wordpress-categories/974#comment-1339</guid> <description>Lynette !! your champion!Thank you so much ! I&#039;m using it now on my site.</description> <content:encoded><![CDATA[<p>Lynette !! your champion!</p><p>Thank you so much ! I&#8217;m using it now on my site.</p> ]]></content:encoded> </item> <item><title>By: Parody</title><link>http://techbasedmarketing.com/blog/different-stylesheet-for-different-wordpress-categories/744/comment-page-1/#comment-3828</link> <dc:creator>Parody</dc:creator> <pubDate>Mon, 24 Nov 2008 04:01:00 +0000</pubDate> <guid
isPermaLink="false">http://techbasedmarketing.com/blog/different-stylesheet-for-different-wordpress-categories/974#comment-3828</guid> <description>Lynette !! your champion!Thank you so much ! I&#039;m using it now on my site.</description> <content:encoded><![CDATA[<p>Lynette !! your champion!</p><p>Thank you so much ! I&#8217;m using it now on my site.</p> ]]></content:encoded> </item> <item><title>By: Lynette</title><link>http://techbasedmarketing.com/blog/different-stylesheet-for-different-wordpress-categories/744/comment-page-1/#comment-1334</link> <dc:creator>Lynette</dc:creator> <pubDate>Mon, 27 Oct 2008 16:26:38 +0000</pubDate> <guid
isPermaLink="false">http://techbasedmarketing.com/blog/different-stylesheet-for-different-wordpress-categories/974#comment-1334</guid> <description>Hi Parody. You&#039;ll need to do an if else statement. Like this:
&lt;pre lang=&quot;php&quot;&gt;&lt;?php if (is_home()) { ?&gt;
&lt;link rel=”stylesheet” type=”text/css” href=”&lt;?php bloginfo(’template_url’); ?&gt;/style2.css” /&gt;
&lt;?php } elseif (is_category()) {?&gt;
&lt;link rel=”stylesheet” type=”text/css” href=”&lt;?php bloginfo(’template_url’); ?&gt;/style3.css” /&gt;
&lt;?php } else { ?&gt;
&lt;link rel=”stylesheet” type=”text/css” href=”&lt;?php bloginfo(’stylesheet_url’); ?&gt;” /&gt;
&lt;?php } ?&gt;&lt;/pre&gt;Check out WP&#039;s Conditional Tags page in the Codex. While it does not explain it for style sheets, the concept is the same.
http://codex.wordpress.org/Conditional_Tags</description> <content:encoded><![CDATA[<p>Hi Parody. You&#8217;ll need to do an if else statement. Like this:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_home<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
  &lt;link rel=”stylesheet” type=”text/css” href=”<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span>’template_url’<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/style2.css” /&gt;
  <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span>is_category<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
  &lt;link rel=”stylesheet” type=”text/css” href=”<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span>’template_url’<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/style3.css” /&gt;
  <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
  &lt;link rel=”stylesheet” type=”text/css” href=”<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span>’stylesheet_url’<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>” /&gt;
  <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div><p>Check out WP&#8217;s Conditional Tags page in the Codex. While it does not explain it for style sheets, the concept is the same.<br
/> <a
href="http://codex.wordpress.org/Conditional_Tags" rel="nofollow">http://codex.wordpress.org/Conditional_Tags</a></p> ]]></content:encoded> </item> <item><title>By: Lynette</title><link>http://techbasedmarketing.com/blog/different-stylesheet-for-different-wordpress-categories/744/comment-page-1/#comment-3825</link> <dc:creator>Lynette</dc:creator> <pubDate>Mon, 27 Oct 2008 16:26:00 +0000</pubDate> <guid
isPermaLink="false">http://techbasedmarketing.com/blog/different-stylesheet-for-different-wordpress-categories/974#comment-3825</guid> <description>Hi Parody. You&#039;ll need to do an if else statement. Like this:
&lt;pre lang=&quot;php&quot;&gt;
&lt;link rel=”stylesheet” type=”text/css” href=”/style2.css” /&gt;
&lt;link rel=”stylesheet” type=”text/css” href=”/style3.css” /&gt;
&lt;link rel=”stylesheet” type=”text/css” href=”” /&gt;
&lt;/pre&gt;Check out WP&#039;s Conditional Tags page in the Codex. While it does not explain it for style sheets, the concept is the same.
http://codex.wordpress.org/Conditional_Tags</description> <content:encoded><![CDATA[<p>Hi Parody. You&#8217;ll need to do an if else statement. Like this:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;">  <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>link rel<span style="color: #339933;">=</span>”stylesheet” type<span style="color: #339933;">=</span>”text<span style="color: #339933;">/</span>css” href<span style="color: #339933;">=</span>”<span style="color: #339933;">/</span>style2<span style="color: #339933;">.</span>css” <span style="color: #339933;">/&amp;</span>gt<span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>link rel<span style="color: #339933;">=</span>”stylesheet” type<span style="color: #339933;">=</span>”text<span style="color: #339933;">/</span>css” href<span style="color: #339933;">=</span>”<span style="color: #339933;">/</span>style3<span style="color: #339933;">.</span>css” <span style="color: #339933;">/&amp;</span>gt<span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>link rel<span style="color: #339933;">=</span>”stylesheet” type<span style="color: #339933;">=</span>”text<span style="color: #339933;">/</span>css” href<span style="color: #339933;">=</span>”” <span style="color: #339933;">/&amp;</span>gt<span style="color: #339933;">;</span></pre></div></div><p>Check out WP&#8217;s Conditional Tags page in the Codex. While it does not explain it for style sheets, the concept is the same.<br
/> <a
href="http://codex.wordpress.org/Conditional_Tags" rel="nofollow">http://codex.wordpress.org/Conditional_Tags</a></p> ]]></content:encoded> </item> <item><title>By: Parody</title><link>http://techbasedmarketing.com/blog/different-stylesheet-for-different-wordpress-categories/744/comment-page-1/#comment-1335</link> <dc:creator>Parody</dc:creator> <pubDate>Sun, 26 Oct 2008 13:20:55 +0000</pubDate> <guid
isPermaLink="false">http://techbasedmarketing.com/blog/different-stylesheet-for-different-wordpress-categories/974#comment-1335</guid> <description>Great post, its exactly what im looking for! But how would you do multiple conditions ? As in one for home one for archives, one for pages etc ??Ive tired the above and it does not work ! Im sure its something simple but i just cant get my head around it.Thanks for the great post.</description> <content:encoded><![CDATA[<p>Great post, its exactly what im looking for! But how would you do multiple conditions ? As in one for home one for archives, one for pages etc ??</p><p>Ive tired the above and it does not work ! Im sure its something simple but i just cant get my head around it.</p><p>Thanks for the great post.</p> ]]></content:encoded> </item> <item><title>By: Parody</title><link>http://techbasedmarketing.com/blog/different-stylesheet-for-different-wordpress-categories/744/comment-page-1/#comment-3826</link> <dc:creator>Parody</dc:creator> <pubDate>Sun, 26 Oct 2008 13:20:00 +0000</pubDate> <guid
isPermaLink="false">http://techbasedmarketing.com/blog/different-stylesheet-for-different-wordpress-categories/974#comment-3826</guid> <description>Great post, its exactly what im looking for! But how would you do multiple conditions ? As in one for home one for archives, one for pages etc ??Ive tired the above and it does not work ! Im sure its something simple but i just cant get my head around it.Thanks for the great post.</description> <content:encoded><![CDATA[<p>Great post, its exactly what im looking for! But how would you do multiple conditions ? As in one for home one for archives, one for pages etc ??</p><p>Ive tired the above and it does not work ! Im sure its something simple but i just cant get my head around it.</p><p>Thanks for the great post.</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
Database Caching 25/45 queries in 0.079 seconds using disk: basic
Content Delivery Network via Amazon Web Services: CloudFront: d2itnlmiw5boxq.cloudfront.net

Served from: techbasedmarketing.com @ 2012-05-21 18:21:54 -->
