<?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: Special image for each category</title>
		<link>http://www.kriesi.at/support/topic/special-image-for-each-category</link>
		<description>Support Forum - Topic: Special image for each category</description>
		<language>en-US</language>
		<pubDate>Thu, 20 Jun 2013 09:37:00 +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/special-image-for-each-category" rel="self" type="application/rss+xml" />

		<item>
			<title>Mya on "Special image for each category"</title>
			<link>http://www.kriesi.at/support/topic/special-image-for-each-category#post-60653</link>
			<pubDate>Mon, 18 Jun 2012 03:50:23 +0000</pubDate>
			<dc:creator>Mya</dc:creator>
			<guid isPermaLink="false">60653@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Glad you were able to find a solution. Thanks for posting!&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Mya
&#60;/p&#62;</description>
		</item>
		<item>
			<title>colorit2 on "Special image for each category"</title>
			<link>http://www.kriesi.at/support/topic/special-image-for-each-category#post-60185</link>
			<pubDate>Thu, 14 Jun 2012 10:37:21 +0000</pubDate>
			<dc:creator>colorit2</dc:creator>
			<guid isPermaLink="false">60185@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi Devin and @all,&#60;/p&#62;
&#60;p&#62;thanks, but I've found out, that a plugin isn't necessary for my initial question. &#60;/p&#62;
&#60;p&#62;If someone needs a solution, here is mine, found at a German tutorial yesterday;&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;If you like to show a header image above a category page,&#60;/strong&#62; then follow these steps:&#60;/p&#62;
&#60;p&#62;1)&#60;br /&#62;
prepare your header images: right/desired size (I used for example full width images with 960x250px)&#60;/p&#62;
&#60;p&#62;2)&#60;br /&#62;
upload them in Wordpress' media library; note/copy the path of the image, you'll need it for the following code.&#60;/p&#62;
&#60;p&#62;3)&#60;br /&#62;
Open archive.php and find at around line 11 &#60;code&#62; &#38;lt;div id=&#34;main&#34;&#38;gt; &#60;/code&#62;&#60;/p&#62;
&#60;p&#62;4)&#60;br /&#62;
directly after this, insert this (note the explations within the code):&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
	&#38;lt;div id=&#34;categoryimagestyle&#34;&#38;gt;  &#38;lt;!-- your own CSS for category image --&#38;gt;&#60;br /&#62;
		&#38;lt;img src='&#38;lt;?php&#60;br /&#62;
    if (is_category('167')) {       // the ID of your category&#60;br /&#62;
        echo 'http://yoursite.de/files/2012/06/categoryimage-167.jpg';&#60;br /&#62;
	} elseif (is_category('photography')) {    // you can enter the ID or the slug of the category&#60;br /&#62;
        echo 'http://yoursite.de.de/files/2012/06/categoryimage-photography.jpg';&#60;br /&#62;
    } elseif (is_category('164')) {&#60;br /&#62;
        echo 'http://yoursite.de.de/files/2012/06/categoryimage-164.jpg';&#60;br /&#62;
	} elseif (is_category('design')) {&#60;br /&#62;
        echo 'http://yoursite.de.de/files/2012/06/categoryimage-design.jpg';&#60;br /&#62;
	}?&#38;gt;'&#38;gt;&#60;br /&#62;
	&#38;lt;/div&#38;gt;&#60;br /&#62;
	&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;5) Save and you're ready; use Firebug to adjust your CSS style for category image, here: &#60;code&#62;#categoryimagestyle&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;6) Explanations:&#60;/p&#62;
&#60;p&#62;- you can enter the ID of your categories or the name: &#60;code&#62;(is_category('167')) &#60;/code&#62; or &#60;code&#62; (is_category('photography')) &#60;/code&#62;&#60;/p&#62;
&#60;p&#62;- the CSS for the category header image is just this:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
#categoryimagestyle {&#60;br /&#62;
    margin-left: 20px;&#60;br /&#62;
    margin-top: -6px;&#60;br /&#62;
}&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Result:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://i46.tinypic.com/10dhd05.jpg&#34; rel=&#34;nofollow&#34;&#62;http://i46.tinypic.com/10dhd05.jpg&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Hope this helps, if anybody needs this, too. It's a great possibility for an &#34;eye-catcher&#34; at top of the category pages.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Devin on "Special image for each category"</title>
			<link>http://www.kriesi.at/support/topic/special-image-for-each-category#post-60071</link>
			<pubDate>Wed, 13 Jun 2012 18:54:14 +0000</pubDate>
			<dc:creator>Devin</dc:creator>
			<guid isPermaLink="false">60071@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi colorit2,&#60;/p&#62;
&#60;p&#62;Unfortunately we really are unable to offer support on third party plugins. If you are unfamiliar with html/css and php I would recommend looking into a Freelance Web developer to finish the customization for you. Implementing something a plugin should take less than 2 hours depending on your sepcifications.&#60;/p&#62;
&#60;p&#62;Regards,&#60;/p&#62;
&#60;p&#62;Devin
&#60;/p&#62;</description>
		</item>
		<item>
			<title>colorit2 on "Special image for each category"</title>
			<link>http://www.kriesi.at/support/topic/special-image-for-each-category#post-60021</link>
			<pubDate>Wed, 13 Jun 2012 13:25:20 +0000</pubDate>
			<dc:creator>colorit2</dc:creator>
			<guid isPermaLink="false">60021@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I have installed the plugin, uploaded my category thumbnails, but I have no know-how about editing template files.&#60;/p&#62;
&#60;p&#62;I have used your code above and placed there the tempalte tag from the plugin (mentioned here: &#60;a href=&#34;http://wordpress.org/extend/plugins/category-images-ii/other_notes/)&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/category-images-ii/other_notes/)&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
&#38;lt;?php ciii_category_images(); ?&#38;gt;&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;and put in in archive.php of NEWSCAST here, so I have this:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
				&#38;lt;?php /* If this is a category archive */ if (is_category()) { ?&#38;gt;&#60;br /&#62;
				&#38;lt;?php _e('Kategorie: ','newscast'); ?&#38;gt;  &#38;lt;?php ciii_category_images(); ?&#38;gt; &#38;lt;?php echo single_cat_title(); ?&#38;gt;&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;But I have no images, and I don't know what the plugin's author means with &#34;You will need to style the HTML output yourself&#34;, what and where I need to edit what :-(&#60;/p&#62;
&#60;p&#62;So if you cannot help me with this issue, do you have perhaps another solution for my question which is much easier to implement or much automatic?&#60;/p&#62;
&#60;p&#62;Thanks a lot in advance.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Mya on "Special image for each category"</title>
			<link>http://www.kriesi.at/support/topic/special-image-for-each-category#post-59874</link>
			<pubDate>Tue, 12 Jun 2012 20:10:39 +0000</pubDate>
			<dc:creator>Mya</dc:creator>
			<guid isPermaLink="false">59874@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi colorit2,&#60;/p&#62;
&#60;p&#62;I believe the easiest route would be to use a plugin like &#60;a href=&#34;http://wordpress.org/extend/plugins/category-images-ii/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/category-images-ii/&#60;/a&#62;. Personally, I've never used it so I can't attest to its workability but from the summary it sounds as if it will work.&#60;/p&#62;
&#60;p&#62;The template you will need to edit is archive.php. Here's the code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php /* If this is a category archive */ if (is_category()) { ?&#38;gt;
&#38;lt;?php _e(&#38;#39;Archive for&#38;#39;,&#38;#39;newscast&#38;#39;); ?&#38;gt;  &#38;lt;?php echo single_cat_title(); ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Mya
&#60;/p&#62;</description>
		</item>
		<item>
			<title>colorit2 on "Special image for each category"</title>
			<link>http://www.kriesi.at/support/topic/special-image-for-each-category#post-59842</link>
			<pubDate>Tue, 12 Jun 2012 16:37:50 +0000</pubDate>
			<dc:creator>colorit2</dc:creator>
			<guid isPermaLink="false">59842@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;my category archive is looking at the moment like this:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://i50.tinypic.com/2dsfqja.jpg&#34; rel=&#34;nofollow&#34;&#62;http://i50.tinypic.com/2dsfqja.jpg&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I would like to have an image over the whole width on top of each category archive;&#60;br /&#62;
each category should have its own image.&#60;/p&#62;
&#60;p&#62;I've made a composing with Elements, how it should look like:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://i46.tinypic.com/v45g1t.jpg&#34; rel=&#34;nofollow&#34;&#62;http://i46.tinypic.com/v45g1t.jpg&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;How can I do this?&#60;/p&#62;
&#60;p&#62;And when it is too hard to code in the theme itself, can you recommend perhaps a plugin for it?&#60;/p&#62;
&#60;p&#62;Thanks a lot in advance.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
