<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Cozmoslabs &#187; logo</title>
	<atom:link href="http://www.cozmoslabs.com/tag/logo/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cozmoslabs.com</link>
	<description>Web design and development experiment.</description>
	<lastBuildDate>Fri, 03 Feb 2012 16:05:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Add a header image to Thematic &#8211; the easy way</title>
		<link>http://www.cozmoslabs.com/471-add-a-header-image-to-thematic-the-easy-way/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=add-a-header-image-to-thematic-the-easy-way</link>
		<comments>http://www.cozmoslabs.com/471-add-a-header-image-to-thematic-the-easy-way/#comments</comments>
		<pubDate>Thu, 28 May 2009 21:48:48 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Thematic]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[child theme]]></category>
		<category><![CDATA[logo]]></category>
		<category><![CDATA[thematic header image]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=471</guid>
		<description><![CDATA[With the various theme hooks and theme filters, now it&#8217;s easier then ever to change the Thematic header with your own logo or custom banner design. Until now you had to either change the header.php file in Thematic (something not really recommended) or use rather ugly CSS tricks to hide the existing content and use [...]
Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/311-green-anyone-try-commune-thematic-child-theme/' rel='bookmark' title='&lt;span style=&quot;color:#7fae52&quot;&gt;Green anyone?&lt;/span&gt; Try Commune &#8211; Thematic Child Theme!'><span style="color:#7fae52">Green anyone?</span> Try Commune &#8211; Thematic Child Theme!</a></li>
<li><a href='http://www.cozmoslabs.com/164-installing-wordpress-child-themes-customizing/' rel='bookmark' title='Installing WordPress Child Themes and Customizing the Byty Theme'>Installing WordPress Child Themes and Customizing the Byty Theme</a></li>
<li><a href='http://www.cozmoslabs.com/620-early-morning-child-theme/' rel='bookmark' title='Early Morning Child Theme'>Early Morning Child Theme</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>With the various <em>theme hooks</em> and <em>theme filters</em>, now it&#8217;s easier then ever to <strong>change the <a href="http://themeshaper.com/thematic/">Thematic</a> header</strong> with your own logo or custom banner design. </p>
<p>Until now you had to either change the header.php file in Thematic (something not really recommended) or <a href="http://www.cozmoslabs.com/2008/10/29/installing-wordpress-child-themes-customizing/">use rather ugly CSS tricks</a> to hide the existing content and use your logo or banner as a background for the <em>#header</em> or <em>#branding</em> div.</p>
<p>The end result will be a <strong>Child Theme Options page</strong> that will allow us to select if we want to use the default header or upload a header image:<br />
<div id="attachment_473" class="wp-caption aligncenter" style="width: 610px"><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/05/Untitled-2.jpg" alt="Child Theme Options Page - You now have the posibility to upload your header image from WordPress" title="Untitled-2" width="600" height="354" class="size-full wp-image-473" /><p class="wp-caption-text">Child Theme Options Page - You now have the posibility to upload your header image from WordPress</p></div></p>
<p><span id="more-471"></span></p>
<p>We&#8217;ll start by <a href="http://www.cozmoslabs.com/2008/09/07/use-wordpress-as-a-cms-with-thematic-part1/">creating a Child Theme</a>. If you are already using one of the <a href="http://www.cozmoslabs.com/wordpress-themes/">Thematic Child Themes</a> then you can move to the next step, modifying the <em>functions.php</em> file.</p>
<p>The code for this tutorial was created by my colleague <a href="http://gab.ro/" rel="nofollow">Gabriel</a>. He always helps me with custom programing for WordPress <img src='http://www.cozmoslabs.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> !</p>
<p>This <em>functions.php</em> file will consist of two parts: adding the Child Theme Options page to WordPress and replacing the default header with your own logo or banner image.</p>
<p>Open functions.php and add the following code:</p>

<div class="wp_codebox"><table><tr id="p4712"><td class="code" id="p471code2"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">// ---------- &quot;Child Theme Options&quot; menu STARTS HERE</span>
&nbsp;
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'admin_menu'</span> <span style="color: #339933;">,</span> <span style="color: #0000ff;">'childtheme_add_admin'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> childtheme_add_admin<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	add_submenu_page<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'themes.php'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Child Theme Options'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Child Theme Options'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'edit_themes'</span><span style="color: #339933;">,</span> <a href="http://www.php.net/basename"><span style="color: #990000;">basename</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">__FILE__</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'childtheme_admin'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> childtheme_admin<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #000088;">$child_theme_image</span> <span style="color: #339933;">=</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'child_theme_image'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$enabled</span> <span style="color: #339933;">=</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'child_theme_logo_enabled'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'options-submit'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$enabled</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/htmlspecialchars"><span style="color: #990000;">htmlspecialchars</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'enabled'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		update_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'child_theme_logo_enabled'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$enabled</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #000088;">$file_name</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_FILES</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'logo_image'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$temp_file</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_FILES</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'logo_image'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'tmp_name'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$file_type</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_FILES</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'logo_image'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'type'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file_type</span><span style="color: #339933;">==</span><span style="color: #0000ff;">&quot;image/gif&quot;</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$file_type</span><span style="color: #339933;">==</span><span style="color: #0000ff;">&quot;image/jpeg&quot;</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$file_type</span><span style="color: #339933;">==</span><span style="color: #0000ff;">&quot;image/pjpeg&quot;</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$file_type</span><span style="color: #339933;">==</span><span style="color: #0000ff;">&quot;image/png&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$fd</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/fopen"><span style="color: #990000;">fopen</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$temp_file</span><span style="color: #339933;">,</span>’rb’<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$file_content</span><span style="color: #339933;">=</span><a href="http://www.php.net/file_get_contents"><span style="color: #990000;">file_get_contents</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$temp_file</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<a href="http://www.php.net/fclose"><span style="color: #990000;">fclose</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fd</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #000088;">$wud</span> <span style="color: #339933;">=</span> wp_upload_dir<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/file_exists"><span style="color: #990000;">file_exists</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$wud</span><span style="color: #009900;">&#91;</span>path<span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'/'</span><span style="color: #339933;">.</span><a href="http://www.php.net/strtolower"><span style="color: #990000;">strtolower</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file_name</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
				<a href="http://www.php.net/unlink"><span style="color: #990000;">unlink</span></a> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$wud</span><span style="color: #009900;">&#91;</span>path<span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'/'</span><span style="color: #339933;">.</span><a href="http://www.php.net/strtolower"><span style="color: #990000;">strtolower</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file_name</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
&nbsp;
			<span style="color: #000088;">$upload</span> <span style="color: #339933;">=</span> wp_upload_bits<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$file_name</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$file_content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #666666; font-style: italic;">//	echo $upload['error'];</span>
&nbsp;
			<span style="color: #000088;">$child_theme_image</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wud</span><span style="color: #009900;">&#91;</span>url<span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'/'</span><span style="color: #339933;">.</span><a href="http://www.php.net/strtolower"><span style="color: #990000;">strtolower</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file_name</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			update_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'child_theme_image'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$child_theme_image</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">?&gt;</span>
			<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;updated&quot;</span><span style="color: #339933;">&gt;&lt;</span>p<span style="color: #339933;">&gt;</span>Your <span style="color: #000000; font-weight: bold;">new</span> options have been successfully saved<span style="color: #339933;">.&lt;/</span>p<span style="color: #339933;">&gt;&lt;/</span>div<span style="color: #339933;">&gt;</span>
		<span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$enabled</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$checked</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'checked=&quot;checked&quot;'</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">?&gt;</span>
		<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;wrap&quot;</span><span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;icon-themes&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;icon32&quot;</span><span style="color: #339933;">&gt;&lt;/</span>div<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>h2<span style="color: #339933;">&gt;</span>Child Theme Options<span style="color: #339933;">&lt;/</span>h2<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>form name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;theform&quot;</span> method<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post&quot;</span> enctype<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;multipart/form-data&quot;</span> action<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo str_replace( '%7E', '~', <span style="color: #006699; font-weight: bold;">$_SERVER</span>['REQUEST_URI']);?&gt;&quot;</span><span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>table <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-table&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>tr<span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>td width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;200&quot;</span><span style="color: #339933;">&gt;</span>Use logo image instead of blog title and description<span style="color: #339933;">:&lt;/</span>td<span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>td<span style="color: #339933;">&gt;&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checkbox&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;enabled&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;1&quot;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$checked</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">/&gt;&lt;/</span>td<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;/</span>tr<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>tr<span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>td<span style="color: #339933;">&gt;</span>Current image<span style="color: #339933;">:&lt;/</span>td<span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>td<span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo <span style="color: #006699; font-weight: bold;">$child_theme_image</span>; ?&gt;&quot;</span> <span style="color: #339933;">/&gt;&lt;/</span>td<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;/</span>tr<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>tr<span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>td<span style="color: #339933;">&gt;</span>Logo image to <span style="color: #000000; font-weight: bold;">use</span> <span style="color: #009900;">&#40;</span>gif<span style="color: #339933;">/</span>jpeg<span style="color: #339933;">/</span>png<span style="color: #009900;">&#41;</span><span style="color: #339933;">:&lt;/</span>td<span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>td<span style="color: #339933;">&gt;&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;file&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;logo_image&quot;</span><span style="color: #339933;">&gt;&lt;</span>br <span style="color: #339933;">/&gt;</span><span style="color: #009900;">&#40;</span>you must have writing permissions <span style="color: #b1b100;">for</span> your uploads directory<span style="color: #009900;">&#41;</span><span style="color: #339933;">&lt;/</span>td<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;/</span>tr<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;/</span>table<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hidden&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;options-submit&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;1&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit&quot;</span><span style="color: #339933;">&gt;&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Save Options&quot;</span> <span style="color: #339933;">/&gt;&lt;/</span>p<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
	<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// ---------- &quot;Child Theme Options&quot; menu ENDS HERE</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// ---------- Adding the logo image to the header STARTS HERE</span>
&nbsp;
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'child_theme_logo_enabled'</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;">function</span> remove_thematic_blogtitle<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	 remove_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'thematic_header'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'thematic_blogtitle'</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'init'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'remove_thematic_blogtitle'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">function</span> remove_thematic_blogdescription<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	 remove_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'thematic_header'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'thematic_blogdescription'</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'init'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'remove_thematic_blogdescription'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">function</span> thematic_logo_image<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;div id=&quot;logo-image&quot;&gt;&lt;a href=&quot;'</span><span style="color: #339933;">.</span>get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'home'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;&lt;img src=&quot;'</span><span style="color: #339933;">.</span>get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'child_theme_image'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; /&gt;&lt;/a&gt;&lt;/div&gt;'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'thematic_header'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'thematic_logo_image'</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #666666; font-style: italic;">// ---------- Adding the logo image to the header ENDS HERE</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>This source code works on all Thematic 0.9 Child Themes. If you&#8217;re using an older version of Thematic, chances are this won&#8217;t work.</p>
<p>Save and go into your WordPress admin panel under &#8220;Appearance -> Child Theme Options&#8221;. If every thing worked out ok you should have a similar admin panel as the one in the picture on top of the page.</p>
<p>As a side note there&#8217;s already in the works a <a href="http://www.wupperpiraten.de/2009/05/thematic-configuration-plugin/" rel="nofollow">plugin for WordPress that will make modifying Thematic a breeze</a> so keep an eye out for great new things coming your way!</p>
<p>Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/311-green-anyone-try-commune-thematic-child-theme/' rel='bookmark' title='&lt;span style=&quot;color:#7fae52&quot;&gt;Green anyone?&lt;/span&gt; Try Commune &#8211; Thematic Child Theme!'><span style="color:#7fae52">Green anyone?</span> Try Commune &#8211; Thematic Child Theme!</a></li>
<li><a href='http://www.cozmoslabs.com/164-installing-wordpress-child-themes-customizing/' rel='bookmark' title='Installing WordPress Child Themes and Customizing the Byty Theme'>Installing WordPress Child Themes and Customizing the Byty Theme</a></li>
<li><a href='http://www.cozmoslabs.com/620-early-morning-child-theme/' rel='bookmark' title='Early Morning Child Theme'>Early Morning Child Theme</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/471-add-a-header-image-to-thematic-the-easy-way/feed/</wfw:commentRss>
		<slash:comments>176</slash:comments>
		</item>
	</channel>
</rss>

