<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<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">
	<channel>
		<title>Support Forum - Topic: Different style for one category</title>
		<link>http://www.kriesi.at/support/topic/different-style-for-one-category</link>
		<description>Support Forum - Topic: Different style for one category</description>
		<language>en-US</language>
		<pubDate>Fri, 24 May 2013 22:08:16 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/different-style-for-one-category" rel="self" type="application/rss+xml" />

		<item>
			<title>Dude on "Different style for one category"</title>
			<link>http://www.kriesi.at/support/topic/different-style-for-one-category#post-27069</link>
			<pubDate>Thu, 15 Sep 2011 14:37:18 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">27069@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Glad that it works now :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cheekykev on "Different style for one category"</title>
			<link>http://www.kriesi.at/support/topic/different-style-for-one-category#post-27056</link>
			<pubDate>Thu, 15 Sep 2011 10:07:13 +0000</pubDate>
			<dc:creator>cheekykev</dc:creator>
			<guid isPermaLink="false">27056@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thanks so much Dude - that worked!&#60;/p&#62;
&#60;p&#62;K
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Different style for one category"</title>
			<link>http://www.kriesi.at/support/topic/different-style-for-one-category#post-27016</link>
			<pubDate>Thu, 15 Sep 2011 06:03:39 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">27016@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;You can use:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;body.home {
    background: url(&#38;quot;../images/skin1/bg.png&#38;quot;) repeat-x scroll 0 0 #FFFFFF !important;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>cheekykev on "Different style for one category"</title>
			<link>http://www.kriesi.at/support/topic/different-style-for-one-category#post-26993</link>
			<pubDate>Wed, 14 Sep 2011 22:52:15 +0000</pubDate>
			<dc:creator>cheekykev</dc:creator>
			<guid isPermaLink="false">26993@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Sorry, I thought I found a way to fix it but sadly not.  So the header background is now red on the home page and it should be the default black. How can I make it black on the homepage? The bg.png file hasn't been changed and as far as I know I haven't changed any of the CSS that effects the header background on the homepage. &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.nicolamorgan.com/author/&#34; rel=&#34;nofollow&#34;&#62;http://www.nicolamorgan.com/author/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cheekykev on "Different style for one category"</title>
			<link>http://www.kriesi.at/support/topic/different-style-for-one-category#post-26982</link>
			<pubDate>Wed, 14 Sep 2011 19:35:00 +0000</pubDate>
			<dc:creator>cheekykev</dc:creator>
			<guid isPermaLink="false">26982@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thanks, but if I do that then I lose all the work Dude and I did previously to make the headers change depending upon category.  I found another solution so no need for help now.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Beard on "Different style for one category"</title>
			<link>http://www.kriesi.at/support/topic/different-style-for-one-category#post-26905</link>
			<pubDate>Wed, 14 Sep 2011 01:04:36 +0000</pubDate>
			<dc:creator>Chris Beard</dc:creator>
			<guid isPermaLink="false">26905@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I don't see how your body ended up getting a class like .category-6, if you remove this your problem is solved - the class doesn't need to be on the body at all.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cheekykev on "Different style for one category"</title>
			<link>http://www.kriesi.at/support/topic/different-style-for-one-category#post-26856</link>
			<pubDate>Tue, 13 Sep 2011 11:57:03 +0000</pubDate>
			<dc:creator>cheekykev</dc:creator>
			<guid isPermaLink="false">26856@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;This was working perfect but something must have changed.  The Homepage banner color was black which is how i'd like it but now it uses the navy blue banner (bgMediaRoom.png) which is for a specific category?  I haven't changed the CSS.  I notice that when i comment out this line the Homapage banner becomes the correct black color again: &#60;/p&#62;
&#60;p&#62;body.category-26{&#60;br /&#62;
    background: url(&#34;../images/skin1/bgMediaRoom.png&#34;) repeat-x scroll 0 0 #FFFFFF;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;I can't leave this line commented out as I need it to make this category navy blue.  Any ideas?&#60;/p&#62;
&#60;p&#62;K
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Different style for one category"</title>
			<link>http://www.kriesi.at/support/topic/different-style-for-one-category#post-25539</link>
			<pubDate>Mon, 22 Aug 2011 15:35:14 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">25539@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Glad that it works now :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cheekykev on "Different style for one category"</title>
			<link>http://www.kriesi.at/support/topic/different-style-for-one-category#post-25537</link>
			<pubDate>Mon, 22 Aug 2011 15:32:59 +0000</pubDate>
			<dc:creator>cheekykev</dc:creator>
			<guid isPermaLink="false">25537@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;That was the cause - working fine now.  Thanks! :o)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Different style for one category"</title>
			<link>http://www.kriesi.at/support/topic/different-style-for-one-category#post-25526</link>
			<pubDate>Mon, 22 Aug 2011 12:57:05 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">25526@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Maybe you based your archive template on index.php? Use the standard archive.php to remove the slider...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cheekykev on "Different style for one category"</title>
			<link>http://www.kriesi.at/support/topic/different-style-for-one-category#post-25525</link>
			<pubDate>Mon, 22 Aug 2011 12:41:11 +0000</pubDate>
			<dc:creator>cheekykev</dc:creator>
			<guid isPermaLink="false">25525@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;That worked great!  Now I am able to style my categories, posts and pages differently ;o).  Thanks for all your help!  Just one thing though, now when I click on a menu item that should display only posts from one category it shows all posts from every category and also displays the home page slider. It's doing this with all menu items that are categories. I've tried recreating the menu but it still shows every post for one category in the menu.&#60;/p&#62;
&#60;p&#62;For example if you look at: &#60;a href=&#34;http://www.nicolamorgan.com/author/clips/&#34; rel=&#34;nofollow&#34;&#62;http://www.nicolamorgan.com/author/clips/&#60;/a&#62;&#60;br /&#62;
and click the menu item labeled 'Clips &#38;amp; Cuttings' this used to show only one post in the category but now it shows every post along with the home page slider :o(   What can I do to fix this?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Different style for one category"</title>
			<link>http://www.kriesi.at/support/topic/different-style-for-one-category#post-25514</link>
			<pubDate>Mon, 22 Aug 2011 06:51:10 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">25514@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Ok - use:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;body.page-template-template-young-php{
    background: url(&#38;quot;../images/skin1/bgyoungstyle.png&#38;quot;) repeat-x scroll 0 0 #FFFFFF;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>cheekykev on "Different style for one category"</title>
			<link>http://www.kriesi.at/support/topic/different-style-for-one-category#post-25513</link>
			<pubDate>Mon, 22 Aug 2011 06:42:07 +0000</pubDate>
			<dc:creator>cheekykev</dc:creator>
			<guid isPermaLink="false">25513@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Forgot I had the site locked while it's still being built.  You should be able to access it now.  &#60;/p&#62;
&#60;p&#62;K
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Different style for one category"</title>
			<link>http://www.kriesi.at/support/topic/different-style-for-one-category#post-25504</link>
			<pubDate>Mon, 22 Aug 2011 05:16:28 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">25504@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I can't access the page (login page appears instead)...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cheekykev on "Different style for one category"</title>
			<link>http://www.kriesi.at/support/topic/different-style-for-one-category#post-25499</link>
			<pubDate>Sun, 21 Aug 2011 20:48:48 +0000</pubDate>
			<dc:creator>cheekykev</dc:creator>
			<guid isPermaLink="false">25499@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;&#60;a href=&#34;http://www.nicolamorgan.com/author/about-me/&#34; rel=&#34;nofollow&#34;&#62;http://www.nicolamorgan.com/author/about-me/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Different style for one category"</title>
			<link>http://www.kriesi.at/support/topic/different-style-for-one-category#post-25498</link>
			<pubDate>Sun, 21 Aug 2011 20:26:40 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">25498@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Can you post a link to a &#34;custom page template&#34; please.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cheekykev on "Different style for one category"</title>
			<link>http://www.kriesi.at/support/topic/different-style-for-one-category#post-25495</link>
			<pubDate>Sun, 21 Aug 2011 20:10:56 +0000</pubDate>
			<dc:creator>cheekykev</dc:creator>
			<guid isPermaLink="false">25495@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;How would I apply my custom header (bgyoungstyle.png) to a particular page template. I've created a new page template called 'template-young.php' which appears in the page 'Template' drop down box but i'm not sure how to get it to use my alternative header.&#60;/p&#62;
&#60;p&#62;Basically, I can use my alternative header in posts and categories and now want to use it in some pages to.&#60;/p&#62;
&#60;p&#62;Thanks&#60;/p&#62;
&#60;p&#62;Kev
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cheekykev on "Different style for one category"</title>
			<link>http://www.kriesi.at/support/topic/different-style-for-one-category#post-24982</link>
			<pubDate>Tue, 16 Aug 2011 11:58:18 +0000</pubDate>
			<dc:creator>cheekykev</dc:creator>
			<guid isPermaLink="false">24982@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thanks so much!!! - Everything is working great!&#60;/p&#62;
&#60;p&#62;That's two pints of beer I owe you now :o)&#60;/p&#62;
&#60;p&#62;Kev
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Different style for one category"</title>
			<link>http://www.kriesi.at/support/topic/different-style-for-one-category#post-24979</link>
			<pubDate>Tue, 16 Aug 2011 10:21:22 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">24979@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Ok - I see the problem. Open up functions.php and add following code at the very bottom:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function category_id_class($classes) {
	global $post;
	foreach((get_the_category($post-&#38;gt;ID)) as $category)
		$classes[] = &#38;#39;category-&#38;#39;.$category-&#38;gt;cat_ID;
	return $classes;
}
add_filter(&#38;#39;post_class&#38;#39;, &#38;#39;category_id_class&#38;#39;);
add_filter(&#38;#39;body_class&#38;#39;, &#38;#39;category_id_class&#38;#39;);&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>cheekykev on "Different style for one category"</title>
			<link>http://www.kriesi.at/support/topic/different-style-for-one-category#post-24975</link>
			<pubDate>Tue, 16 Aug 2011 07:37:38 +0000</pubDate>
			<dc:creator>cheekykev</dc:creator>
			<guid isPermaLink="false">24975@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;&#60;a href=&#34;http://www.nicolamorgan.com/author/books/know-your-brain/&#34; rel=&#34;nofollow&#34;&#62;http://www.nicolamorgan.com/author/books/know-your-brain/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;This is link to the custom post in use (single2.php) - does that help?  All I need to be able to do to is use my new header (bgyoungstyle.png) in single2.php&#60;/p&#62;
&#60;p&#62;Thanks&#60;/p&#62;
&#60;p&#62;Kev
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Different style for one category"</title>
			<link>http://www.kriesi.at/support/topic/different-style-for-one-category#post-24961</link>
			<pubDate>Tue, 16 Aug 2011 06:33:19 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">24961@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Instead of single2 fill in your post id or the template class (all classes are applied to the body tag). I can't give you custom css code because I need a link to your (custom) single page first.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cheekykev on "Different style for one category"</title>
			<link>http://www.kriesi.at/support/topic/different-style-for-one-category#post-24942</link>
			<pubDate>Mon, 15 Aug 2011 20:34:17 +0000</pubDate>
			<dc:creator>cheekykev</dc:creator>
			<guid isPermaLink="false">24942@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;One more quick thing.  I also want to style the individual posts of the category so I made two copies single.php - single1.php and single2.php.  I then deleted all the code from single.php and added: &#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;br /&#62;
$post = $wp_query-&#38;gt;post;&#60;br /&#62;
if ( in_category('6') ) {&#60;br /&#62;
include(TEMPLATEPATH . '/single2.php');&#60;br /&#62;
} else {&#60;br /&#62;
include(TEMPLATEPATH . '/single1.php');&#60;br /&#62;
}&#60;br /&#62;
?&#38;gt;&#60;/p&#62;
&#60;p&#62;Then I used the code you gave me to try and change the style of single2.php so I added the code below to style1.css:&#60;/p&#62;
&#60;p&#62;body.single2{&#60;br /&#62;
    background: url(&#34;../images/skin1/bgyoungstyle.png&#34;) repeat-x scroll 0 0 #FFFFFF;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;But this doesn't change the header in the posts?  Any ideas?&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Different style for one category"</title>
			<link>http://www.kriesi.at/support/topic/different-style-for-one-category#post-24849</link>
			<pubDate>Sun, 14 Aug 2011 17:12:17 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">24849@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Glad that I could help you :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cheekykev on "Different style for one category"</title>
			<link>http://www.kriesi.at/support/topic/different-style-for-one-category#post-24843</link>
			<pubDate>Sun, 14 Aug 2011 15:23:56 +0000</pubDate>
			<dc:creator>cheekykev</dc:creator>
			<guid isPermaLink="false">24843@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Just used your code and it works! If I could buy you a pint I would!!!&#60;/p&#62;
&#60;p&#62;Cheers Dude!&#60;/p&#62;
&#60;p&#62;K
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cheekykev on "Different style for one category"</title>
			<link>http://www.kriesi.at/support/topic/different-style-for-one-category#post-24842</link>
			<pubDate>Sun, 14 Aug 2011 15:21:12 +0000</pubDate>
			<dc:creator>cheekykev</dc:creator>
			<guid isPermaLink="false">24842@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;More progress - I've copied the style1 file and called it style5 and have then changed the background image to my new background:&#60;br /&#62;
body{&#60;br /&#62;
background: #fff url(../images/skin1/bgyoungstyle.png) repeat-x 0 0;&#60;br /&#62;
color:#666;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;I've also commented out the old code that includes the style sheet in my new headeryoungstyle.php and have added :&#60;br /&#62;
&#38;lt;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; href=&#34;/author/wp-content/themes/newscast/css/style5.css&#34; type=&#34;text/css&#34; media=&#34;screen&#34; /&#38;gt;&#60;br /&#62;
to my new headeryoungstyle.php&#60;/p&#62;
&#60;p&#62;but still the category is not showing the new background? Where did I go wrong?&#60;/p&#62;
&#60;p&#62;Thanks&#60;/p&#62;
&#60;p&#62;Kev
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Different style for one category"</title>
			<link>http://www.kriesi.at/support/topic/different-style-for-one-category#post-24841</link>
			<pubDate>Sun, 14 Aug 2011 15:16:26 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">24841@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;If bgyoungstyle.png should replace bg.png on this category page you can use following css code in style1/2/3/4.css:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;body.category-6{
    background: url(&#38;quot;../images/skin1/bgyoungstyle.png&#38;quot;) repeat-x scroll 0 0 #FFFFFF;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I assume you're using this template for the category with the id &#34;6&#34;. You can change the background value (image path, color,etc.)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cheekykev on "Different style for one category"</title>
			<link>http://www.kriesi.at/support/topic/different-style-for-one-category#post-24839</link>
			<pubDate>Sun, 14 Aug 2011 13:50:51 +0000</pubDate>
			<dc:creator>cheekykev</dc:creator>
			<guid isPermaLink="false">24839@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;OK - i'm in my new headeryoungstyle.php and have included my new background in the following code: &#60;img src=&#34;/author/wp-content/themes/newscast/images/skin1/bgyoungstyle.png&#34; alt=&#34;&#34; /&#62;&#60;/p&#62;
&#60;p&#62;where in the header file should i place it?&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cheekykev on "Different style for one category"</title>
			<link>http://www.kriesi.at/support/topic/different-style-for-one-category#post-24837</link>
			<pubDate>Sun, 14 Aug 2011 13:43:29 +0000</pubDate>
			<dc:creator>cheekykev</dc:creator>
			<guid isPermaLink="false">24837@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Cool - got me category file calling my new header now.  &#60;/p&#62;
&#60;p&#62;Just need to include my new bgyoungstyle.png file now - i'll have a try!&#60;/p&#62;
&#60;p&#62;K
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Different style for one category"</title>
			<link>http://www.kriesi.at/support/topic/different-style-for-one-category#post-24836</link>
			<pubDate>Sun, 14 Aug 2011 13:38:57 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">24836@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;br /&#62;
1) you can change the get_header() function in category-6.php so that it calls a specific header template. This codex page: &#60;a href=&#34;http://codex.wordpress.org/Function_Reference/get_header&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/get_header&#60;/a&#62; tells you how to use the template name parameter.&#60;/p&#62;
&#60;p&#62;2) You can modify &#34;header-{name}.php&#34; and include/harcode the image or you can use a specific css class to call a different background image :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cheekykev on "Different style for one category"</title>
			<link>http://www.kriesi.at/support/topic/different-style-for-one-category#post-24835</link>
			<pubDate>Sun, 14 Aug 2011 13:25:48 +0000</pubDate>
			<dc:creator>cheekykev</dc:creator>
			<guid isPermaLink="false">24835@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I want to create a custom look for one of my categories that is different to other categories.&#60;/p&#62;
&#60;p&#62;I’ve copied the index.php file and called it category-6.php where 6 is the ID of the category I want to style differently.&#60;br /&#62;
I’ve then copied the header.php and called it headeryoungstyle.php&#60;br /&#62;
I’ve copied the bg.png file and changed the colors to my preferences and called it bgyoungstyle.png&#60;/p&#62;
&#60;p&#62;Now i’m a little lost.  I want my new category-6.php to call my new headeryoungstyle.php and I want headeryoungstyle.php to use my new bgyoungstyle.png – how should I complete these steps?&#60;/p&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;Kevin
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
