<?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; Thematic</title>
	<atom:link href="http://www.cozmoslabs.com/tag/thematic/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cozmoslabs.com</link>
	<description>Web design and development experiment.</description>
	<lastBuildDate>Thu, 01 Jul 2010 09:26:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Thematic Tabbed Widgets</title>
		<link>http://www.cozmoslabs.com/2010/05/02/thematic-tabbed-widgets/</link>
		<comments>http://www.cozmoslabs.com/2010/05/02/thematic-tabbed-widgets/#comments</comments>
		<pubDate>Sun, 02 May 2010 19:19:26 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Thematic]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[tabbed widgets]]></category>
		<category><![CDATA[thematic tabed widgets]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=1014</guid>
		<description><![CDATA[Tabbed widgets for WordPress themes have been around since WordPress it self. They are a perfect way to save on vertical space and add a bit of interaction with the users. There are two classic ways of implementing the tabbed widgets. Creating a hard coded widget and using the jQuery Cycle plugin. This means you [...]


Related posts:<ol><li><a href='http://www.cozmoslabs.com/2009/04/07/green-anyone-try-commune-thematic-child-theme/' rel='bookmark' title='Permanent Link: <span style="color:#7fae52">Green anyone?</span> 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/2009/07/20/early-morning-child-theme/' rel='bookmark' title='Permanent Link: Early Morning Child Theme'>Early Morning Child Theme</a></li>
<li><a href='http://www.cozmoslabs.com/2009/06/26/thematic-featured-posts/' rel='bookmark' title='Permanent Link: Add &#8220;Featured Posts&#8221; to your Thematic child theme'>Add &#8220;Featured Posts&#8221; to your Thematic child theme</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_1031" class="wp-caption alignright" style="width: 310px"><img src="http://www.cozmoslabs.com/wp-content/uploads/2010/05/tabs1.png" alt="" title="tabs" width="300" height="126" class="size-full wp-image-1031" /><p class="wp-caption-text">Tabbed widget areas for Thematic</p></div><br />
Tabbed widgets for WordPress themes have been around since WordPress it self. They are a perfect way to save on vertical space and add a bit of interaction with the users. </p>
<p>There are two classic ways of implementing the tabbed widgets. </p>
<ul>
<li>Creating a hard coded widget and using the jQuery Cycle plugin. This means you can&#8217;t easily modify the content of the tabs unless you open the widget file.</li>
<li>Using a tabbed widget plugin. While this is ok for some users it just ads a lot extra code that doesn&#8217;t justify the end.</li>
</ul>
<p>Luckily there is a optimized way of doing things. Write a bit of javascript that converts any default thematic widget area into <strong>a tabbed widget area</strong>. The title of the widgets placed in you widget area will automatically become the widget tabs. </p>
<p><span id="more-1014"></span></p>
<h3>The jQuery Tabbed Widgets Plugin</h3>
<p>This piece of code comes from a friend of mine, <a href="http://twitter.com/dturton">David Turton</a>. It was initially written for a different html structure, so that means the code I&#8217;ll post here will be easily modified to support any WordPress widget areas and transform them into a tabbed widget area.</p>

<div class="wp_codebox"><table><tr id="p10145"><td class="code" id="p1014code5"><pre class="javascript" style="font-family:monospace;"><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	$.<span style="color: #660066;">fn</span>.<span style="color: #660066;">dttabs</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>options<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
		<span style="color: #003366; font-weight: bold;">var</span> options <span style="color: #339933;">=</span> $.<span style="color: #660066;">extend</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
			widgetid <span style="color: #339933;">:</span> <span style="color: #3366CC;">'#secondary'</span><span style="color: #339933;">,</span>
			fade <span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">,</span>
			tabTitleReference <span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">,</span>
			interval <span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">,</span>
			startTab <span style="color: #339933;">:</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">,</span>
			tabContainerName <span style="color: #339933;">:</span> <span style="color: #3366CC;">'tab-items'</span>
		<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> options<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>			
&nbsp;
			<span style="color: #003366; font-weight: bold;">var</span> $this <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
				divCount <span style="color: #339933;">=</span> $this.<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'li'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">length</span><span style="color: #339933;">,</span>
				tabContainer <span style="color: #339933;">=</span> <span style="color: #3366CC;">'&lt;ul id=&quot;'</span> <span style="color: #339933;">+</span> options.<span style="color: #660066;">tabContainerName</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&quot;&gt;'</span><span style="color: #339933;">;</span>
&nbsp;
				$this
					.<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'li:not(:nth-child('</span> <span style="color: #339933;">+</span> options.<span style="color: #660066;">startTab</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'))'</span><span style="color: #009900;">&#41;</span>
					.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
					.<span style="color: #660066;">end</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
					.<span style="color: #660066;">hover</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
						$this.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'hovered'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
						$this.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'hovered'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>						
&nbsp;
				<span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i <span style="color: #339933;">=</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&lt;=</span> divCount<span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
					<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span> options.<span style="color: #660066;">tabTitleReference</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
						<span style="color: #003366; font-weight: bold;">var</span> heading <span style="color: #339933;">=</span> $this
										.<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'li:nth-child('</span> <span style="color: #339933;">+</span> i <span style="color: #339933;">+</span> <span style="color: #3366CC;">')'</span><span style="color: #009900;">&#41;</span>
										.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span>options.<span style="color: #660066;">tabTitleReference</span><span style="color: #009900;">&#41;</span>
										.<span style="color: #660066;">filter</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">':first'</span><span style="color: #009900;">&#41;</span>
										.<span style="color: #660066;">text</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
						<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span> heading <span style="color: #339933;">!==</span> <span style="color: #3366CC;">''</span> <span style="color: #009900;">&#41;</span> tabContainer <span style="color: #339933;">+=</span> <span style="color: #3366CC;">'&lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;tab'</span> <span style="color: #339933;">+</span> i <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&quot; rel=&quot;'</span> <span style="color: #339933;">+</span> i <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&quot;&gt;'</span> <span style="color: #339933;">+</span> heading <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&lt;/a&gt;&lt;/li&gt;'</span><span style="color: #339933;">;</span>
						<span style="color: #000066; font-weight: bold;">else</span> tabContainer <span style="color: #339933;">+=</span> <span style="color: #3366CC;">'&lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;tab'</span> <span style="color: #339933;">+</span> i <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&quot; rel=&quot;'</span> <span style="color: #339933;">+</span> i <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&quot;&gt;'</span> <span style="color: #339933;">+</span> i <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&lt;/a&gt;&lt;/li&gt;'</span><span style="color: #339933;">;</span>
					<span style="color: #009900;">&#125;</span>
					<span style="color: #000066; font-weight: bold;">else</span> tabContainer <span style="color: #339933;">+=</span> <span style="color: #3366CC;">'&lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;tab'</span> <span style="color: #339933;">+</span> i <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&quot; rel=&quot;'</span> <span style="color: #339933;">+</span> i <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&quot;&gt;'</span> <span style="color: #339933;">+</span> i <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&lt;/a&gt;&lt;/li&gt;'</span><span style="color: #339933;">;</span>
				<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
				tabContainer <span style="color: #339933;">+=</span> <span style="color: #3366CC;">'&lt;/ul&gt;'</span><span style="color: #339933;">;</span>
				$<span style="color: #009900;">&#40;</span>options.<span style="color: #660066;">widgetid</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">prepend</span><span style="color: #009900;">&#40;</span>tabContainer<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
				<span style="color: #003366; font-weight: bold;">var</span> $container <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#'</span> <span style="color: #339933;">+</span> options.<span style="color: #660066;">tabContainerName</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
				$container
					.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'li:nth-child('</span> <span style="color: #339933;">+</span> options.<span style="color: #660066;">startTab</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">')'</span><span style="color: #009900;">&#41;</span>
						.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'tab-selected'</span><span style="color: #009900;">&#41;</span>
					.<span style="color: #660066;">end</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
					.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'a'</span><span style="color: #009900;">&#41;</span>
						.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
							<span style="color: #003366; font-weight: bold;">var</span> $a <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
							<span style="color: #003366; font-weight: bold;">var</span> num <span style="color: #339933;">=</span> $a.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'rel'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
							<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span> $this
									.<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'li'</span><span style="color: #009900;">&#41;</span>
									.<span style="color: #660066;">eq</span><span style="color: #009900;">&#40;</span>num <span style="color: #339933;">-</span> <span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span>
									.<span style="color: #000066; font-weight: bold;">is</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">':visible'</span><span style="color: #009900;">&#41;</span>
							<span style="color: #009900;">&#41;</span> <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// user is already on selected tab</span>
&nbsp;
							$container
								.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'li.tab-selected'</span><span style="color: #009900;">&#41;</span>
								.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'tab-selected'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
							$a.<span style="color: #660066;">parent</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'tab-selected'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
							<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span> options.<span style="color: #660066;">fade</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
								$this
									.<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'li'</span><span style="color: #009900;">&#41;</span>
									.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
									.<span style="color: #660066;">eq</span><span style="color: #009900;">&#40;</span>num <span style="color: #339933;">-</span> <span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span>
									.<span style="color: #660066;">fadeIn</span><span style="color: #009900;">&#40;</span>options.<span style="color: #660066;">fade</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
							<span style="color: #009900;">&#125;</span>
&nbsp;
							<span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span> 
								$this
									.<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'li'</span><span style="color: #009900;">&#41;</span>
									.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
									.<span style="color: #660066;">eq</span><span style="color: #009900;">&#40;</span>num <span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span>
									.<span style="color: #660066;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
							<span style="color: #009900;">&#125;</span>
&nbsp;
							<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
						<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	
&nbsp;
				<span style="color: #006600; font-style: italic;">// auto change tabs				</span>
				<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span> options.<span style="color: #660066;">interval</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
					<span style="color: #003366; font-weight: bold;">var</span> i <span style="color: #339933;">=</span> options.<span style="color: #660066;">startTab</span><span style="color: #339933;">;</span>
&nbsp;
					setInterval<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
						<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span>$this.<span style="color: #660066;">hasClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'hovered'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
							$container
								.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'a'</span><span style="color: #009900;">&#41;</span>
								.<span style="color: #660066;">eq</span><span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span>
								.<span style="color: #660066;">trigger</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'click'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
							i<span style="color: #339933;">++;</span>
							<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span> i <span style="color: #339933;">===</span> divCount <span style="color: #009900;">&#41;</span> i <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>
						<span style="color: #009900;">&#125;</span>
&nbsp;
					<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> options.<span style="color: #660066;">interval</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 				<span style="color: #009900;">&#125;</span>			
&nbsp;
		<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// end each</span>
&nbsp;
	<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span>jQuery<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>This is the jQuery plugin and now all we need to do is to initiate our tabbed widget.</p>

<div class="wp_codebox"><table><tr id="p10146"><td class="code" id="p1014code6"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">'text/javascript'</span><span style="color: #339933;">&gt;</span>
jQuery<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#secondary&gt;.xoxo'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">dttabs</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
		widgetid <span style="color: #339933;">:</span> <span style="color: #3366CC;">'#secondary'</span><span style="color: #339933;">,</span>
		fade <span style="color: #339933;">:</span> <span style="color: #CC0000;">1000</span><span style="color: #339933;">,</span>
		tabTitleReference <span style="color: #339933;">:</span> <span style="color: #3366CC;">'.widgettitle'</span><span style="color: #339933;">,</span>
		interval <span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">,</span>
		startTab <span style="color: #339933;">:</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">,</span>
		tabContainerName <span style="color: #339933;">:</span> <span style="color: #3366CC;">'tab-items'</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>If we change <strong>#secondary</strong> with <strong>#primary</strong> then the Primary Aside widget will be transformed into a tabbed widget area.</p>
<h3>Integrating the tabbed widget javascript code with Thematic</h3>
<p>Next we need to add these two javascript pieces of code to our child theme. Add the following code to functions.php of your child theme for Thematic.</p>

<div class="wp_codebox"><table><tr id="p10147"><td class="code" id="p1014code7"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> add_js_to_header<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">'text/javascript'</span> src<span style="color: #339933;">=</span><span style="color: #0000ff;">'&lt;?php bloginfo('</span>stylesheet_directory<span style="color: #0000ff;">'); ?&gt;/dttabs.js'</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">'text/javascript'</span><span style="color: #339933;">&gt;</span>
jQuery<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>ready<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	jQuery<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'#secondary&gt;.xoxo'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>dttabs<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
		widgetid <span style="color: #339933;">:</span> <span style="color: #0000ff;">'#secondary'</span><span style="color: #339933;">,</span>
		fade <span style="color: #339933;">:</span> <span style="color: #cc66cc;">1000</span><span style="color: #339933;">,</span>
		tabTitleReference <span style="color: #339933;">:</span> <span style="color: #0000ff;">'.widgettitle'</span><span style="color: #339933;">,</span>
		interval <span style="color: #339933;">:</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">,</span>
		startTab <span style="color: #339933;">:</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>
		tabContainerName <span style="color: #339933;">:</span> <span style="color: #0000ff;">'tab-items'</span><span style="color: #339933;">,</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #009900;">&#125;</span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wp_head'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'add_js_to_header'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<h3>Adding a bit of style</h3>
<p>The basic functionality is there. However we still need to add a bit of css to the mix or we&#8217;ll have a bad looking tabbed widget <img src='http://www.cozmoslabs.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  .</p>
<p>This css code goes inside style.css of your child theme.</p>

<div class="wp_codebox"><table><tr id="p10148"><td class="code" id="p1014code8"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/*
	Tabed Widget Area #secondary
*/</span>
&nbsp;
<span style="color: #cc00cc;">#secondary</span> .widgettitle<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* The title will be in the tabs. We don't need this anymore. */</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#secondary</span>  <span style="color: #cc00cc;">#tab-items</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#cccccc</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#secondary</span>  <span style="color: #cc00cc;">#tab-items</span> li<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">inline</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#secondary</span>  <span style="color: #cc00cc;">#tab-items</span> li a<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">3px</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span>inline-<span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">-1px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#secondary</span>  <span style="color: #cc00cc;">#tab-items</span> li<span style="color: #6666ff;">.tab-selected</span> a<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#secondary</span> .xoxo<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-top</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#secondary</span> <span style="color: #6666ff;">.xoxo</span> .xoxo<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>And now we have a <strong>tabbed widget for Thematic</strong>!</p>
<div class="preview_download">
<a href="http://cozmoslabs.com/project/tabbed-widgets/"><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/07/preview.gif" alt="preview"/></a>
</div>
<div class="preview_download">
The javascript for this short tutorial was adapted from <a href="http://net.tutsplus.com/tutorials/javascript-ajax/how-to-build-a-custom-jquery-tabs-plugin-new-plus-tutorial/">TutsPlus premium tutorials</a>.
</div>


<p>Related posts:<ol><li><a href='http://www.cozmoslabs.com/2009/04/07/green-anyone-try-commune-thematic-child-theme/' rel='bookmark' title='Permanent Link: <span style="color:#7fae52">Green anyone?</span> 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/2009/07/20/early-morning-child-theme/' rel='bookmark' title='Permanent Link: Early Morning Child Theme'>Early Morning Child Theme</a></li>
<li><a href='http://www.cozmoslabs.com/2009/06/26/thematic-featured-posts/' rel='bookmark' title='Permanent Link: Add &#8220;Featured Posts&#8221; to your Thematic child theme'>Add &#8220;Featured Posts&#8221; to your Thematic child theme</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/2010/05/02/thematic-tabbed-widgets/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Awesome Thematic Templates</title>
		<link>http://www.cozmoslabs.com/2009/07/31/awesome-thematic-templates/</link>
		<comments>http://www.cozmoslabs.com/2009/07/31/awesome-thematic-templates/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 12:19:13 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Thematic]]></category>
		<category><![CDATA[log in]]></category>
		<category><![CDATA[register]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=650</guid>
		<description><![CDATA[Did you ever think about page templates for user registration and log in? Well, we have. Justin&#8217;s Hybrid has them, Thematic doesn&#8217;t. So we&#8217;ve taken the Hybrid templates, adapted them for Thematic, and guess what? They&#8217;re working like a charm. Just upload them to your child theme directory and enjoy. Get’em while they’re hot! No [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Did you ever think about page templates for user registration and log in? Well, we have. Justin&#8217;s <a href="http://themehybrid.com/">Hybrid</a> has them, Thematic doesn&#8217;t. So we&#8217;ve taken the Hybrid templates, adapted them for Thematic, and guess what? They&#8217;re working like a charm. Just upload them to your child theme directory and enjoy.</p>
<p>Get’em while they’re hot!</p>
<p class="preview_download"><a class="downloadlink dlimg" href="http://www.cozmoslabs.com/wp-content/plugins/download-monitor/download.php?id=8" title="Version 0.1 downloaded 1154 times" ><img src="http://www.cozmoslabs.com/wp-content/plugins/download-monitor/img/download.gif" alt="Download Awesome Templates Version 0.1" /></a></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/2009/07/31/awesome-thematic-templates/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Early Morning Child Theme</title>
		<link>http://www.cozmoslabs.com/2009/07/20/early-morning-child-theme/</link>
		<comments>http://www.cozmoslabs.com/2009/07/20/early-morning-child-theme/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 10:54:25 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Recomended Reading]]></category>
		<category><![CDATA[Thematic]]></category>
		<category><![CDATA[Theme Design]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[child theme]]></category>
		<category><![CDATA[thematic child theme]]></category>
		<category><![CDATA[wordpress theme design]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=620</guid>
		<description><![CDATA[This elegant WordPress theme was inspired by the colors of the early morning as I see them from my window. It&#8217;s light, elegant and pleasantly surprising. This theme doesn&#8217;t scream at you, instead it takes a step back and lets the user read. Please don&#8217;t spoil it by putting ads on it! You also have [...]


Related posts:<ol><li><a href='http://www.cozmoslabs.com/2009/04/07/green-anyone-try-commune-thematic-child-theme/' rel='bookmark' title='Permanent Link: <span style="color:#7fae52">Green anyone?</span> 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/2009/06/02/street-wordpress-theme/' rel='bookmark' title='Permanent Link: Street WordPress Theme'>Street WordPress Theme</a></li>
<li><a href='http://www.cozmoslabs.com/2010/06/04/charisma-free-genesis-child-theme/' rel='bookmark' title='Permanent Link: Charisma, Free Genesis Child Theme'>Charisma, Free Genesis Child Theme</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>This elegant WordPress theme was inspired by the colors of the early morning as I see them from my window. It&#8217;s light, elegant and pleasantly surprising.</p>
<p>This theme doesn&#8217;t scream at you, instead it takes a step back and lets the user read. Please don&#8217;t spoil it by putting ads on it!</p>
<div id="attachment_624" class="wp-caption aligncenter" style="width: 610px"><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/07/early-morning1.jpg" alt="Early Morning - A refreshing child theme for Thematic" title="early-morning" width="600" height="326" class="size-full wp-image-624" /><p class="wp-caption-text">Early Morning - A refreshing child theme for Thematic</p></div>
<p><span id="more-620"></span></p>
<h2>You also have some nifty options:</h2>
<ul>
<li>You can upload your own logo</li>
<li>It comes with it&#8217;s own custom designed Twitter widget, so your visitors can see what you&#8217;re doing from your blog</li>
<li>If green isn&#8217;t your style, it comes with 5 background options that you can select from the <strong>Early Morning Theme Options</strong> (Green, Turquoise, Brick Red, Gray and Black)</li>
<li>Has a one column page template and archive template</li>
<li>It&#8217;s been tested and works on Firefox 3.5, Safari 4, Opera 9, Chrome, IE7, IE8</li>
</ul>
<p class="info-box">
In order to install it you have to download the <a href="http://themeshaper.com/thematic/">Thematic Theme</a> (from which this child theme inherits all of the functionality), upload both themes (Early Morning and Thematic) to your server in the themes folder AND THEN ACTIVATE the Early Morning Theme.
</p>
<div class="preview_download">
<a href="http://www.cozmoslabs.com/projects/early/"><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/07/preview.gif" alt="preview"/></a><a class="downloadlink dlimg" href="http://www.cozmoslabs.com/wp-content/plugins/download-monitor/download.php?id=7" title="Version 0.2 downloaded 4957 times" ><img src="http://www.cozmoslabs.com/wp-content/plugins/download-monitor/img/download.gif" alt="Download Early Morning Version 0.2" /></a>
</div>
<div class="preview_download">
Inspired by: <a href="http://www.adrianpelletier.com/">Adrian Pelletier</a>
</div>


<p>Related posts:<ol><li><a href='http://www.cozmoslabs.com/2009/04/07/green-anyone-try-commune-thematic-child-theme/' rel='bookmark' title='Permanent Link: <span style="color:#7fae52">Green anyone?</span> 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/2009/06/02/street-wordpress-theme/' rel='bookmark' title='Permanent Link: Street WordPress Theme'>Street WordPress Theme</a></li>
<li><a href='http://www.cozmoslabs.com/2010/06/04/charisma-free-genesis-child-theme/' rel='bookmark' title='Permanent Link: Charisma, Free Genesis Child Theme'>Charisma, Free Genesis Child Theme</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/2009/07/20/early-morning-child-theme/feed/</wfw:commentRss>
		<slash:comments>109</slash:comments>
		</item>
		<item>
		<title>Add &#8220;Featured Posts&#8221; to your Thematic child theme</title>
		<link>http://www.cozmoslabs.com/2009/06/26/thematic-featured-posts/</link>
		<comments>http://www.cozmoslabs.com/2009/06/26/thematic-featured-posts/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 13:35:54 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Thematic]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[child theme]]></category>
		<category><![CDATA[featured posts]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=557</guid>
		<description><![CDATA[Featured posts are common in WordPress magazine themes. They let you promote hot topics and bring your best articles right in front of your users. First thing we need to do is create a thematic child theme. This way we won’t make direct changes to Thematic. The featured posts will be inserted on the home [...]


Related posts:<ol><li><a href='http://www.cozmoslabs.com/2009/06/02/street-wordpress-theme/' rel='bookmark' title='Permanent Link: Street WordPress Theme'>Street WordPress Theme</a></li>
<li><a href='http://www.cozmoslabs.com/2010/02/10/exclude-posts-from-wordpress-navigation-in-thematic/' rel='bookmark' title='Permanent Link: Exclude posts from WordPress Navigation in Thematic'>Exclude posts from WordPress Navigation in Thematic</a></li>
<li><a href='http://www.cozmoslabs.com/2008/10/29/installing-wordpress-child-themes-customizing/' rel='bookmark' title='Permanent Link: Installing WordPress Child Themes and Customizing the Byty Theme'>Installing WordPress Child Themes and Customizing the Byty Theme</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div id="attachment_565" class="wp-caption alignright" style="width: 310px"><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/04/featured_posts.jpg" alt="Featured Posts for Thematic" title="featured_posts" width="300" height="200" class="size-full wp-image-565" /><p class="wp-caption-text">Featured Posts for Thematic</p></div>
<p>Featured posts are common in WordPress magazine themes. They let you promote hot topics and bring your best articles right in front of your users. </p>
<p>First thing we need to do is create a <a href="http://www.cozmoslabs.com/2008/09/07/use-wordpress-as-a-cms-with-thematic-part1/">thematic child theme</a>. This way we won’t make direct changes to <a href="http://themeshaper.com/thematic/">Thematic</a>.</p>
<p>The featured posts will be inserted on the home page before the rest of the articles. We&#8217;ll display the latest 3 posts which are tagged &#8216;featured&#8217;. </p>
<p class="preview_download"><a href="http://www.cozmoslabs.com/projects/wp/?theme=featured" target="_blank"><img src="http://www.cozmoslabs.com/wp-content/plugins/download-monitor/img/preview.gif" border="0" alt="preview thematic child theme" /></a></p>
<p><span id="more-557"></span></p>
<p>We now have to add the code inside of functions.php file of your child theme (don&#8217;t forget the <em><&#63;php</em> opening tag and the <em>&#63;></em> ending tag).</p>
<pre class="brush: php;">
function featured_posts(){

		$my_query = new WP_Query('tag=featured&amp;showposts=3');

		echo '&lt;ul id=&quot;featured-posts&quot;&gt;';
		$feat_class = array();

		while ($my_query-&gt;have_posts()) : $my_query-&gt;the_post();
				$feat_class = array();
				// Category for the post queried
				foreach ( (array) get_the_category() as $cat )
					$feat_class[] = 'category-' . $cat-&gt;slug;
					$feat_class = join(&quot; &quot;, $feat_class);
				?&gt;
				&lt;li id=&quot;featured-&lt;?php the_ID(); ?&gt;&quot; class=&quot;&lt;?php echo $feat_class; ?&gt;&quot;&gt;
					&lt;?php
						$posttitle = '&lt;h4&gt;&lt;a href=&quot;';
						$posttitle .= get_permalink();
						$posttitle .= '&quot; title=&quot;';
						$posttitle .= __('Permalink to ', 'thematic') . the_title_attribute('echo=0');
						$posttitle .= '&quot; rel=&quot;bookmark&quot;&gt;';
						$posttitle .= get_the_title();
						$posttitle .= &quot;&lt;/a&gt;&lt;/h4&gt;\n&quot;;
						echo $posttitle;

						the_excerpt();
					?&gt;

				&lt;/li&gt;&lt;!-- .post --&gt;
		&lt;?php
		endwhile;
		echo '&lt;/ul&gt;';
}
add_action('thematic_above_indexloop','featured_posts');
</pre>
<p>The first line <em>$my_query = new WP_Query(&#8216;tag=featured&#038;showposts=3&#8242;);</em> defines the name of the tag that targets your posts (you can have any tag name there) and the number of featured articles (three in this case).</p>
<p>Right now it&#8217;s just a list of posts so a bit of css styling is in order to make it look attractive to your visitors. Add this css to your style.css file inside the Child Theme.</p>
<pre class="brush: css;">
ul#featured-posts {
    float: left;
    margin: 0;
    padding: 0 0 15px 0;
    list-style: none;
    color: #111;
    font-size: 11px;
    line-height:14px;
    font-family: Helvetica, Arial, sans-serif;
}
#featured-posts li {
    float: left;
    width: 135px;
    padding: 12px 10px 10px 10px;
    margin-right: 15px;
    min-height: 260px;
    background:#f1f1f1;
    border:3px double #ccc;
}

#featured-posts li p {
    margin: 0;
    padding: 0;
}

#featured-posts li:hover {
    background:#fff;
}
#featured-posts li h4 a {
    font-family:Georgia, Times, sans-serif;
    font-size: 12px;
    line-height: 13px;
    display: block;
    padding: 5px 1px;
    color: #111;
    font-weight: bold;
}
</pre>
<p>I hope you find it useful and don&#8217;t hesitate to post in the comments were you&#8217;ve used this.</p>


<p>Related posts:<ol><li><a href='http://www.cozmoslabs.com/2009/06/02/street-wordpress-theme/' rel='bookmark' title='Permanent Link: Street WordPress Theme'>Street WordPress Theme</a></li>
<li><a href='http://www.cozmoslabs.com/2010/02/10/exclude-posts-from-wordpress-navigation-in-thematic/' rel='bookmark' title='Permanent Link: Exclude posts from WordPress Navigation in Thematic'>Exclude posts from WordPress Navigation in Thematic</a></li>
<li><a href='http://www.cozmoslabs.com/2008/10/29/installing-wordpress-child-themes-customizing/' rel='bookmark' title='Permanent Link: Installing WordPress Child Themes and Customizing the Byty Theme'>Installing WordPress Child Themes and Customizing the Byty Theme</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/2009/06/26/thematic-featured-posts/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
		<item>
		<title>Street WordPress Theme</title>
		<link>http://www.cozmoslabs.com/2009/06/02/street-wordpress-theme/</link>
		<comments>http://www.cozmoslabs.com/2009/06/02/street-wordpress-theme/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 16:45:00 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Thematic]]></category>
		<category><![CDATA[Theme Design]]></category>
		<category><![CDATA[child theme]]></category>
		<category><![CDATA[street]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=500</guid>
		<description><![CDATA[Street is something that was created from a spark of inspiration, something that I felt should look like this. This wasn&#8217;t thought out nor planed. It uses the beautiful Vegur Free Font for the headings and main menu, implemented by Cufon (text replacement technique). I&#8217;ve spent a great deal of time searching for the perfect [...]


Related posts:<ol><li><a href='http://www.cozmoslabs.com/2009/06/26/thematic-featured-posts/' rel='bookmark' title='Permanent Link: Add &#8220;Featured Posts&#8221; to your Thematic child theme'>Add &#8220;Featured Posts&#8221; to your Thematic child theme</a></li>
<li><a href='http://www.cozmoslabs.com/2008/10/29/installing-wordpress-child-themes-customizing/' rel='bookmark' title='Permanent Link: 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/2008/10/25/byty-free-child-theme-built-thematic/' rel='bookmark' title='Permanent Link: Byty the Free Child Theme &#8211; Built on Thematic'>Byty the Free Child Theme &#8211; Built on Thematic</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Street is something that was created from a spark of inspiration, something that I felt should look like this. This wasn&#8217;t thought out nor planed.</p>
<p>It uses the beautiful <a href="http://www.dotcolon.net/font/font.php?id=1">Vegur Free Font</a> for the headings and main menu, implemented by <a href="http://wiki.github.com/sorccu/cufon/about">Cufon</a> (text replacement technique). I&#8217;ve spent a great deal of time searching for the perfect free font for this theme, but I think I found the right combination.</p>
<p>While this child theme is just a skin for <a href="http://themeshaper.com/thematic/">Thematic</a>, because this exact reason is also functional. You have access to all 13 Widget Areas <strong>Thematic</strong> uses, the semantically correct HTML that is great for SEO, can use a page template that spans the entire width of the page without the sidebars and even you can <strong>upload your own logo or header image</strong> from the &#8220;Street Theme Options&#8221;.</p>
<p class="preview_download"><a href="http://cozmoslabs.com/projects/street/" target="_blank"><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/06/preview.gif" border="0" alt="preview thematic child theme" /></a> <a class="downloadlink dlimg" href="http://www.cozmoslabs.com/wp-content/plugins/download-monitor/download.php?id=5" title="Version 0.1 downloaded 4140 times" ><img src="http://www.cozmoslabs.com/wp-content/plugins/download-monitor/img/download.gif" alt="Download Street Child Theme for Thematic Version 0.1" /></a></p>
<div id="attachment_505" class="wp-caption aligncenter" style="width: 610px"><img class="size-full wp-image-505" title="street_theme" src="http://www.cozmoslabs.com/wp-content/uploads/2009/06/street_theme.gif" alt="street_theme" width="600" height="395" /><p class="wp-caption-text">An elegant Child Theme for Thematic</p></div>
<p>I hope you&#8217;ll enjoy using this theme as much I enjoyed creating it!</p>
<p class="info-box">
In order to install it you have to download the <a href="http://themeshaper.com/thematic/">Thematic Theme</a> (from which this child theme inherits all of the functionality), upload both themes (Street and Thematic) to your server in the themes folder AND THEN ACTIVATE the Street theme.</p>


<p>Related posts:<ol><li><a href='http://www.cozmoslabs.com/2009/06/26/thematic-featured-posts/' rel='bookmark' title='Permanent Link: Add &#8220;Featured Posts&#8221; to your Thematic child theme'>Add &#8220;Featured Posts&#8221; to your Thematic child theme</a></li>
<li><a href='http://www.cozmoslabs.com/2008/10/29/installing-wordpress-child-themes-customizing/' rel='bookmark' title='Permanent Link: 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/2008/10/25/byty-free-child-theme-built-thematic/' rel='bookmark' title='Permanent Link: Byty the Free Child Theme &#8211; Built on Thematic'>Byty the Free Child Theme &#8211; Built on Thematic</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/2009/06/02/street-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>77</slash:comments>
		</item>
		<item>
		<title>Add a search box to the thematic menu</title>
		<link>http://www.cozmoslabs.com/2009/04/15/add-a-search-box-to-the-thematic-menu/</link>
		<comments>http://www.cozmoslabs.com/2009/04/15/add-a-search-box-to-the-thematic-menu/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 23:53:46 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Recomended Reading]]></category>
		<category><![CDATA[Thematic]]></category>
		<category><![CDATA[Theme Design]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[child theme]]></category>
		<category><![CDATA[search box]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=358</guid>
		<description><![CDATA[A search box in main menu is something a lot of themes have by design. Although this is not the case with the Thematic Theme Framework, it&#8217;s easy to customize it with a few lines of code. First thing we need to do is create a thematic child theme. This way we won&#8217;t make direct [...]


Related posts:<ol><li><a href='http://www.cozmoslabs.com/2008/12/17/replacing-the-thematic-menu-with-a-dropdown-list-of-categories/' rel='bookmark' title='Permanent Link: Replacing the Thematic Menu with a DropDown List of Categories'>Replacing the Thematic Menu with a DropDown List of Categories</a></li>
<li><a href='http://www.cozmoslabs.com/2009/04/07/green-anyone-try-commune-thematic-child-theme/' rel='bookmark' title='Permanent Link: <span style="color:#7fae52">Green anyone?</span> 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/2008/10/25/byty-free-child-theme-built-thematic/' rel='bookmark' title='Permanent Link: Byty the Free Child Theme &#8211; Built on Thematic'>Byty the Free Child Theme &#8211; Built on Thematic</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>A search box in main menu is something a lot of themes have by design. Although this is not the case with the <a href="http://themeshaper.com/thematic/">Thematic Theme Framework</a>, it&#8217;s easy to customize it with a few lines of code.</p>
<p>First thing we need to do is <a href="http://www.cozmoslabs.com/2008/09/07/use-wordpress-as-a-cms-with-thematic-part1/">create a thematic child theme</a>. This way we won&#8217;t make direct changes to Thematic.</p>
<p>The search box will be displayed on the right of the menu, inside of the <em>#access</em> div. The way Thematic hooks and actions were constructed will first need to remove the <em>thematic_access()</em> action from the <em>thematic_header()</em> hook. If all this sounds a bit difficult fear not. All you have to do is add this code inside of <em>functions.php</em> file of your child theme (don&#8217;t forget the <em><&#63;php</em> opening tag and the <em>&#63;></em> ending tag).</p>
<pre class="brush: php;">
// Remove default Thematic actions
function remove_thematic_actions() {
    remove_action('thematic_header','thematic_access',9);
}
add_action('init','remove_thematic_actions');
</pre>
<p>If everything is working properly when you reload your WordPress installation the entire menu would have disappear! <strong>Now we can create our own menu WITH the search box on the right of it! </strong>Add this code at the end of your <em>functions.php</em>:</p>
<pre class="brush: php;">
// Create a custom access div with the menu and search box
function search_access() { ?&gt;
    	&lt;div id=&quot;access&quot;&gt;
    		&lt;div class=&quot;skip-link&quot;&gt;&lt;a href=&quot;#content&quot; title=&quot;&lt;?php _e('Skip navigation to the content', 'thematic'); ?&gt;&quot;&gt;&lt;?php _e('Skip to content', 'thematic'); ?&gt;&lt;/a&gt;&lt;/div&gt;
            &lt;?php wp_page_menu('sort_column=menu_order') ?&gt;

			&lt;div id=&quot;access-search&quot;&gt;
				&lt;form id=&quot;searchform&quot; method=&quot;get&quot; action=&quot;&lt;?php bloginfo('home') ?&gt;&quot;&gt;
					&lt;div&gt;
						&lt;input id=&quot;s&quot; name=&quot;s&quot; type=&quot;text&quot; value=&quot;&lt;?php echo wp_specialchars(stripslashes($_GET['s']), true) ?&gt;&quot; size=&quot;20&quot; tabindex=&quot;1&quot; /&gt;
						&lt;input id=&quot;searchsubmit&quot; name=&quot;searchsubmit&quot; type=&quot;submit&quot; value=&quot;&lt;?php _e('Search', 'thematic') ?&gt;&quot; tabindex=&quot;2&quot; /&gt;
					&lt;/div&gt;
				&lt;/form&gt;
			&lt;/div&gt;

        &lt;/div&gt;&lt;!-- #access --&gt;
&lt;?php }
add_action('thematic_header','search_access',9);
</pre>
<p>Reload your page and the search box will be there, but not where you expected it to be! We&#8217;ll need to add a bit of css styling to it. </p>
<p>Go ahead and open the <em>style.css</em> and at the end of it add this css code: </p>
<pre class="brush: css;">
#access-search{
	position:absolute;
	left:50%;
	width:260px;
	margin-left:170px;
	height:29px;
	border-top:1px solid #ccc;
	border-left:1px solid #ccc;
	border-right:1px solid #ccc;
	padding:2px 0 0 4px;
}
</pre>
<p>This is it! You now have successfully added a search box to the right of your thematic main menu! </p>
<div id="preview_download" style="text-align:center">
<a href="http://www.cozmoslabs.com/projects/wp/?theme=indepth" target="_blank"><img src="http://www.cozmoslabs.com/wp-content/plugins/download-monitor/img/preview.gif" alt="Preview of the finished search box"/></a></div>


<p>Related posts:<ol><li><a href='http://www.cozmoslabs.com/2008/12/17/replacing-the-thematic-menu-with-a-dropdown-list-of-categories/' rel='bookmark' title='Permanent Link: Replacing the Thematic Menu with a DropDown List of Categories'>Replacing the Thematic Menu with a DropDown List of Categories</a></li>
<li><a href='http://www.cozmoslabs.com/2009/04/07/green-anyone-try-commune-thematic-child-theme/' rel='bookmark' title='Permanent Link: <span style="color:#7fae52">Green anyone?</span> 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/2008/10/25/byty-free-child-theme-built-thematic/' rel='bookmark' title='Permanent Link: Byty the Free Child Theme &#8211; Built on Thematic'>Byty the Free Child Theme &#8211; Built on Thematic</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/2009/04/15/add-a-search-box-to-the-thematic-menu/feed/</wfw:commentRss>
		<slash:comments>39</slash:comments>
		</item>
		<item>
		<title>Green anyone? Try Commune &#8211; Thematic Child Theme!</title>
		<link>http://www.cozmoslabs.com/2009/04/07/green-anyone-try-commune-thematic-child-theme/</link>
		<comments>http://www.cozmoslabs.com/2009/04/07/green-anyone-try-commune-thematic-child-theme/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 05:27:29 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Recomended Reading]]></category>
		<category><![CDATA[Theme Design]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[child theme]]></category>
		<category><![CDATA[magazine theme]]></category>
		<category><![CDATA[Thematic]]></category>
		<category><![CDATA[wordpress theme]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=311</guid>
		<description><![CDATA[Simply put I have been lazy lately. I know this isn&#8217;t the best way to sell my self but a little bit of honesty hasn&#8217;t hurt anyone (or has it? ). So without further ado I here by present you Commune Child Theme based on Thematic! As far as I know it&#8217;s the first magazine [...]


Related posts:<ol><li><a href='http://www.cozmoslabs.com/2008/10/29/installing-wordpress-child-themes-customizing/' rel='bookmark' title='Permanent Link: 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/2009/05/04/commune-child-theme-update/' rel='bookmark' title='Permanent Link: Commune Child Theme &#8211; Update'>Commune Child Theme &#8211; Update</a></li>
<li><a href='http://www.cozmoslabs.com/2009/07/20/early-morning-child-theme/' rel='bookmark' title='Permanent Link: Early Morning Child Theme'>Early Morning Child Theme</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="postimage"><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/04/commune_thumb.jpg" alt="commune_thumb" title="commune_thumb" width="300" height="200" class="alignnone size-full wp-image-331" /></div>
<p>Simply put I have been lazy lately. I know this isn&#8217;t the best way to sell my self but a little bit of honesty hasn&#8217;t hurt anyone (or has it? ). So without further ado I here by present you <strong><em>Commune Child Theme</em></strong> based on <a href="http://themeshaper.com/thematic-for-wordpress/">Thematic!</a></p>
<p>As far as I know it&#8217;s the first magazine like Thematic child theme released for free!<br />
</br></p>
<div id="preview_download"><a href="http://cozmoslabs.com/projects/commune/" target="_blank"><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/04/preview.gif" border="0" alt="preview thematic child theme" /></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="downloadlink dlimg" href="http://www.cozmoslabs.com/wp-content/plugins/download-monitor/download.php?id=4" title="Version 0.4 downloaded 7492 times" ><img src="http://www.cozmoslabs.com/wp-content/plugins/download-monitor/img/download.gif" alt="Download Commune Child Theme for Thematic Version 0.4" /></a>
</div>
<div id="showcase_blogs">
<h3>Is it a bird, is it a plane?<br/> Hardly! Just a Thematic Child Theme with a twist!</h3>
<p> There are many reasons why you should consider using the <strong>&#8220;Commune child theme&#8221;</strong> :</p>
<ul>
<li>It&#8217;s <span style="color:#7fae52">green</span></li>
<li>It&#8217;s a Thematic Child Theme &#8211; this being said it has all the features Thematic has including fully widget-ized with widget areas above and below the content—and even in-between. </li>
<li>Lets you <strong>upload your own logo / banner image through an admin panel</strong></li>
<li>Easy to <strong>add images to posts without having to use custom fields or without the need to crop your images!</strong></li>
<li>Easy to <strong>add default images to posts in certain categories </strong>- So if you don&#8217;t add an image to a certain post it will display the image assigned to the category it&#8217;s in!</li>
<li>It was designed to work with the <a href="http://wordpress.org/extend/plugins/tabbed-widgets/">Tabbed Widget Plugin</a> and <a href="http://wordpress.org/extend/plugins/wp-pagenavi/">WP-PageNavi plugin</a> (update &#8211; Tabbed widgets doesn&#8217;t currently work with WordPress 2.8)</li>
<li>The main menu displays all your categories and subcategories</li>
<li>Tested and works on all modern browsers: Firefox 3, IE7, Safari, Google Chrome</li>
</ul>
</div>
<p><span id="more-311"></span></p>
<div id="showcase_blogs" style="background:#caf8b2;">
In order to install it you have to download the <a href="http://themeshaper.com/thematic-for-wordpress/">Thematic Theme</a> (from which this child theme inherits all of the functionality), upload both themes (Commune and Thematic) to your server in the themes folder AND THEN ACTIVATE the Commune theme.
</div>
<h2>A small guide</h2>
<p>There are basically three things to explain: adding your own logo, the Tabbed Widget and adding images to posts! </p>
<h3> Adding your own logo </h3>
<p><strong>Commune </strong>features an Options page that allows you to <strong>upload your own logo or banner image</strong>. You need to go to the WordPress admin panel and under &#8220;Apperance -> Child Theme Options&#8221;. </p>
<p>This is how the interface looks like:</p>
<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>
<h3> The Tabbed Widget &#8211; update: it currently doesn&#8217;t work with WordPress 2.8</h3>
<p>To use the functionality of the Tabbed Widget Plugin you first need to <a href="http://wordpress.org/extend/plugins/tabbed-widgets/">download and install it</a>! </p>
<p>Once that&#8217;s out of the way select <em>Appearance &#8211;> Tabbed Widgets</em>. The interface gives you the possibility to create 8 Tabbed Widget areas, but in out case we&#8217;ll use just one. In <em>Tabbed Widget No. 1</em> select the widgets you want displayed. For the demo of the child theme Commune I used:</p>
<ul>
<li>Recent Posts</li>
<li>Recent Comments</li>
<li>Tag Clouds</li>
<li>Search</li>
</ul>
<p>Make sure you give a title to each individual widget or your users will only see 4 tabs.</p>
<p>Other settings you need to take into consideration are: </p>
<ul>
<li><strong>deselect</strong> <em>show title</em> (it&#8217;s deselected by default)</li>
<li><strong>select</strong> <em>Style as: tabs</em> </li>
</ul>
<p>I&#8217;ve also uploaded an image with the settings for the <em>Tabbed Widget Nr.1</em>.</p>
<p><a href="http://www.cozmoslabs.com/wp-content/uploads/2009/04/tw-printscr.png"><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/04/tw-printscr-300x204.png" alt="tw-printscr" title="tw-printscr" width="300" height="204" class="aligncenter size-medium wp-image-326" /></a></p>
<p>The next and last step is to head over to <em>Appearance -> Widgets</em>. Select the <em>Primary Aside</em> Widget, click <em>Show</em> and add <em>Tabbed Widget 1</em> to it and save changes. After this you should have your Tabbed Widget displayed on the front-end of your blog in all it&#8217;s glory!  </p>
<h3>Category and post images</h3>
<p>Another key element of this theme is the way pictures are used and displayed. For this the <a href="http://www.wp-fun.co.uk/2009/01/10/easy-peasy-images-suggestion-roundup/">Easy Peasy Images</a> code by Andrew Rickmann was integrated into the theme code.</p>
<div id="showcase_blogs">
So for you to add a image to a post all you have to do is upload a nice looking image and that&#8217;s all! You don&#8217;t even have to include it in your content!
</div>
<p>What this does is to get a list of all the images attached to a post. It then finds the first image with a sort order of 0 and displays it. By default all images have a sort order of zero unless you choose to reorder them. If you don’t make any changes then it will find the first image. If you reorder them using drag and drop the first image in the list will have an order of 1 and you would need to change it to 0.</p>
<h4>Default images by category</h4>
<p>The theme will add a list of categories to the <em>Media -> Library</em> so that you can assign images to one or more categories. If the function doesn’t find a post attachment with a sort order of 0 then it will default to the image attached to the category the post is in. <em>Note:</em> it will use the first category image it finds.</p>
<p><em>For more information on the usage you can see <a href="http://www.wp-fun.co.uk/2009/01/10/easy-peasy-images-suggestion-roundup/">a video-tutorial </a>over at Andrew Rickmann&#8217;s web-site, <a href="http://www.wp-fun.co.uk">www.wp-fun.co.uk</a></em></p>
<p><strong>As always if you have any questions or if you find bugs please let me know! I appreciate every input! </strong></p>


<p>Related posts:<ol><li><a href='http://www.cozmoslabs.com/2008/10/29/installing-wordpress-child-themes-customizing/' rel='bookmark' title='Permanent Link: 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/2009/05/04/commune-child-theme-update/' rel='bookmark' title='Permanent Link: Commune Child Theme &#8211; Update'>Commune Child Theme &#8211; Update</a></li>
<li><a href='http://www.cozmoslabs.com/2009/07/20/early-morning-child-theme/' rel='bookmark' title='Permanent Link: Early Morning Child Theme'>Early Morning Child Theme</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/2009/04/07/green-anyone-try-commune-thematic-child-theme/feed/</wfw:commentRss>
		<slash:comments>253</slash:comments>
		</item>
		<item>
		<title>Quickly add a Category DropDown to Thematic 0.9</title>
		<link>http://www.cozmoslabs.com/2009/03/20/quickly-add-a-category-dropdown-to-thematic-09/</link>
		<comments>http://www.cozmoslabs.com/2009/03/20/quickly-add-a-category-dropdown-to-thematic-09/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 08:39:05 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Theme Design]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[category dropdown]]></category>
		<category><![CDATA[menu dropdown]]></category>
		<category><![CDATA[Thematic]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=300</guid>
		<description><![CDATA[With the launch of Thematic 0.9 we now have out of the box drop-down menus to work with. This is one of the many features added to 0.9 that was requested by the community. However sometimes one might want to replace the default Thematic menu with a menu composed with the categories and sub-categories of [...]


Related posts:<ol><li><a href='http://www.cozmoslabs.com/2008/12/17/replacing-the-thematic-menu-with-a-dropdown-list-of-categories/' rel='bookmark' title='Permanent Link: Replacing the Thematic Menu with a DropDown List of Categories'>Replacing the Thematic Menu with a DropDown List of Categories</a></li>
<li><a href='http://www.cozmoslabs.com/2009/02/12/thematic-drop-down-menu/' rel='bookmark' title='Permanent Link: Drop Down Menu for Thematic'>Drop Down Menu for Thematic</a></li>
<li><a href='http://www.cozmoslabs.com/2009/04/15/add-a-search-box-to-the-thematic-menu/' rel='bookmark' title='Permanent Link: Add a search box to the thematic menu'>Add a search box to the thematic menu</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>With the launch of <a href="http://themeshaper.com/thematic-for-wordpress/">Thematic 0.9</a> we now have out of the box drop-down menus to work with. This is one of the many features added to 0.9 that was requested by the community. However sometimes one might want to replace the default Thematic menu with a menu composed with the categories and sub-categories of your WordPress installation. </p>
<p>Although I&#8217;ve done in the past a similar tutorial that one isn&#8217;t working anymore with the latest Thematic version so here is a quick and easy way to add a Category DropDown.</p>
<p><strong>First </strong>create a <a href="http://www.cozmoslabs.com/2008/09/07/use-wordpress-as-a-cms-with-thematic-part1/">ChildTheme</a>.<br />
<strong>Second</strong> create and then open the <em>functions.php</em> file that should be found in your new ChildTheme.<br />
<strong>Third</strong> add this code to the <em>functions.php</em> file:</p>
<pre class="brush: php;">

#Add a drop down category menu
function childtheme_category_menu() { ?&gt;
        &lt;div id=&quot;category-menu&quot; class=&quot;menu&quot;&gt;
            &lt;ul id=&quot;category-nav&quot; class=&quot;sf-menu&quot;&gt;
                &lt;?php wp_list_categories('title_li='); ?&gt;
            &lt;/ul&gt;
        &lt;/div&gt;
&lt;?php }
add_action('wp_page_menu','childtheme_category_menu');
</pre>
<p>Save and test. You should now have a drop-down from your categories!</p>


<p>Related posts:<ol><li><a href='http://www.cozmoslabs.com/2008/12/17/replacing-the-thematic-menu-with-a-dropdown-list-of-categories/' rel='bookmark' title='Permanent Link: Replacing the Thematic Menu with a DropDown List of Categories'>Replacing the Thematic Menu with a DropDown List of Categories</a></li>
<li><a href='http://www.cozmoslabs.com/2009/02/12/thematic-drop-down-menu/' rel='bookmark' title='Permanent Link: Drop Down Menu for Thematic'>Drop Down Menu for Thematic</a></li>
<li><a href='http://www.cozmoslabs.com/2009/04/15/add-a-search-box-to-the-thematic-menu/' rel='bookmark' title='Permanent Link: Add a search box to the thematic menu'>Add a search box to the thematic menu</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/2009/03/20/quickly-add-a-category-dropdown-to-thematic-09/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Replacing the Thematic Menu with a DropDown List of Categories</title>
		<link>http://www.cozmoslabs.com/2008/12/17/replacing-the-thematic-menu-with-a-dropdown-list-of-categories/</link>
		<comments>http://www.cozmoslabs.com/2008/12/17/replacing-the-thematic-menu-with-a-dropdown-list-of-categories/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 03:27:54 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Recomended Reading]]></category>
		<category><![CDATA[Theme Design]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[category]]></category>
		<category><![CDATA[menu dropdown]]></category>
		<category><![CDATA[Thematic]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=202</guid>
		<description><![CDATA[There comes a time when you might want to use the Thematic Theme for other things then just a blog, like a magazine or a portal and it might be best suited to have the categories of your blog on top instead of your static pages. After all, you&#8217;ll probably have two static pages (about [...]


Related posts:<ol><li><a href='http://www.cozmoslabs.com/2008/09/07/use-wordpress-as-a-cms-with-thematic-part1/' rel='bookmark' title='Permanent Link: Use WordPress as a CMS with Thematic Theme- Part1'>Use WordPress as a CMS with Thematic Theme- Part1</a></li>
<li><a href='http://www.cozmoslabs.com/2009/06/26/thematic-featured-posts/' rel='bookmark' title='Permanent Link: Add &#8220;Featured Posts&#8221; to your Thematic child theme'>Add &#8220;Featured Posts&#8221; to your Thematic child theme</a></li>
<li><a href='http://www.cozmoslabs.com/2009/03/20/quickly-add-a-category-dropdown-to-thematic-09/' rel='bookmark' title='Permanent Link: Quickly add a Category DropDown to Thematic 0.9'>Quickly add a Category DropDown to Thematic 0.9</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="postimage"><img src="http://www.cozmoslabs.com/wp-content/uploads/2008/12/catdrop.jpg" alt="Thematic Menu DropDown" title="Thematic Menu DropDown" width="300" height="200" class="alignnone size-full wp-image-208" /></div>
<p>There comes a time when you might want to use the <a href="http://themeshaper.com/thematic-for-wordpress/">Thematic Theme</a> for other things then just a blog, like a magazine or a portal and it might be best suited to have the categories of your blog on top instead of your static pages. After all, you&#8217;ll probably have two static pages (about and contact) and several categories and subcategories.</p>
<p>I&#8217;ve seen this request twice in the <a href="http://themeshaper.com/forums/">forums</a> over at ThemeShaper and I&#8217;ll now try and answer it. </p>
<p><strong>I&#8217;ve created a the <em>CatDrop Child Theme</em> that dose just that: transforms Thematic&#8217;s menu into a magazine style category based one!</strong></p>
<div id="preview_download"><a href="http://www.cozmoslabs.com/projects/wp/?theme=catdrop" target="_blank"><img src="http://www.cozmoslabs.com/wp-content/uploads/2008/12/preview.gif" border="0" alt="preview child theme" /></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="downloadlink dlimg" href="http://www.cozmoslabs.com/wp-content/plugins/download-monitor/download.php?id=2" title="Version 0.1 downloaded 1600 times" ><img src="http://www.cozmoslabs.com/wp-content/plugins/download-monitor/img/download.gif" alt="Download Category DropDown for thematic Version 0.1" /></a></div>
<p><span id="more-202"></span></p>
<div id="showcase_blogs" style="background:#caf8b2;">
In order to install it you have to download the <a href="http://themeshaper.com/thematic-for-wordpress/" onclick="javascript:pageTracker._trackPageview ('/outbound/themeshaper.com');">Thematic Theme</a> (from which this child theme inherits all of the functionality), upload both themes (CatDrop and Thematic) to your server in the themes folder AND THEN ACTIVATE the CatDrop theme.
</div>
<p>Assuming you&#8217;ve already downloaded the latest version of<a href="http://wordpress.org/extend/themes/thematic">Thematic</a> (at the time of the writing it was version 0.7) and uploaded it inside your <em>wp-content/themes</em> directory, we can start the tutorial.</p>
<p>We won&#8217;t modify Thematic directly, instead we&#8217;ll create a <a href="http://www.cozmoslabs.com/2008/09/07/use-wordpress-as-a-cms-with-thematic-part1/">Child theme</a> and add this functionality to it. To do just that create a directory named <em>catdrop</em> inside your themes folder and two files: <em>functions.php</em> and <em>style.css</em>.</p>
<p>We&#8217;ll start by telling WordPress that our theme is a ChildTheme of thematic add this code into <em>style.css</em>.</p>
<pre class="brush: css;">
/*
Theme Name: CatDrop
Theme URI: http://cozmoslabs.com/
Description: Built on Thematic Theme&lt;/a&gt;
Author: Cristi Antohe
Author URI: http://cozmoslabs.com/
Template: thematic
Version: 0.1
.
This work, like WordPress, is released under GNU General Public License, version 2 (GPL).

http://www.gnu.org/licenses/old-licenses/gpl-2.0.html

.
*/

/* Reset browser defaults */
@import url('../thematic/library/styles/reset.css');

/* Apply basic typography styles */
@import url('../thematic/library/styles/typography.css');

/* Apply a basic layout */
@import url('../thematic/library/layouts/2c-r-fixed.css');

/* Apply basic image styles */
@import url('../thematic/library/styles/images.css');

/* Apply default theme styles and colors */
@import url('../thematic/library/styles/default.css');

/* Prepare theme for plugins */
@import url('../thematic/library/styles/plugins.css');

/************************************************ Style for drop-down menu */
#header{
	z-index:99; /* IE7 z-index bug */
}
#access{
	overflow:visible;
	position:static;
	float:none;
	height:37px;
}
#menu{
	position:static;
	width: 940px;
	margin-top: 0pt;
	margin-right: auto;
	margin-bottom: 0pt;
	margin-left: auto;

	padding-top: 7px;
	padding-right: 0pt;
	padding-bottom: 8px;
	padding-left: 0pt;
	overflow-x: visible;
	overflow-y: visible;
	overflow:visible;
}
#menu ul{
	padding:0;
	margin:0;
}
#menu ul li ul{

}
#menu li{
	margin:0;
	padding:0;
}
#menu li a{
	text-align:center;
	margin:0 0px 0 0;
	width:11em;
	padding:5px;
	border-left:1px solid #6DA5D6;
}
#menu li li li a{
	background:#B5D1EA;
}
#main{
	clear:both;
}
</pre>
<p>I&#8217;ve added some stilling to the <em>#access</em> and <em>#menu</em> divs or the theme would look odd.</p>
<p>Next we need to create our <em>functions.php</em> file. Add the following code to it:</p>
<pre class="brush: php;">
&lt;?php
/* Create unordered lists with our categories */
function categ_menu() {
?&gt;
&lt;div id=&quot;menu&quot;&gt;
&lt;ul class=&quot;sf-menu&quot;&gt;
	&lt;li&gt;&lt;a href=&quot;&lt;?php echo get_option('home'); ?&gt;/&quot; class=&quot;on&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
 	&lt;?php wp_list_categories('orderby=name&amp;amp;amp;exlude=181&amp;amp;amp;title_li=');
 	$this_category = get_category($cat);
 	if (get_category_children($this_category-&gt;cat_ID) != &quot;&quot;) {
 		echo &quot;&lt;ul&gt;&quot;;
			wp_list_categories('orderby=id&amp;amp;amp;show_count=0&amp;amp;amp;title_li=&amp;amp;amp;use_desc_for_title=1&amp;amp;amp;child_of='.$this_category-&gt;cat_ID);
 		echo &quot;&lt;/ul&gt;&quot;;
 	}
	?&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;?php
}
/* Add the needed style and javascript for the dropdown */
function add_to_head(){
?&gt;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;&lt;?php echo get_stylesheet_directory_uri(); ?&gt;/superfish/superfish.css&quot; media=&quot;screen&quot;&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;&lt;?php echo get_stylesheet_directory_uri(); ?&gt;/superfish/hoverIntent.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;&lt;?php echo get_stylesheet_directory_uri(); ?&gt;/superfish/superfish.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
// initialise plugins
	jQuery(function(){
		jQuery('ul.sf-menu').superfish({
            delay:       300,                            // one second delay on mouseout
            speed:       'fast',                         // faster animation speed
            autoArrows:  false,                          // disable generation of arrow mark-up
            dropShadows: true                            // disable drop shadows
		});
	});
&lt;/script&gt;
&lt;?php
}
add_action('wp_head', 'add_to_head');
add_action('wp_page_menu', 'categ_menu');
?&gt;
</pre>
<p>The <em>categ_menu</em> function is the one that generates the list of categories and the <em>add_to_head</em> one is adding the needed css and javascript files to out Child Theme.(you can get the files from the Child theme download). This could be easily modified to support drop-down pages for the menu but that one some other time!</p>
<p><strong>And this is the way you make Thematic similar to a magazine style WordPress theme!</strong></p>


<p>Related posts:<ol><li><a href='http://www.cozmoslabs.com/2008/09/07/use-wordpress-as-a-cms-with-thematic-part1/' rel='bookmark' title='Permanent Link: Use WordPress as a CMS with Thematic Theme- Part1'>Use WordPress as a CMS with Thematic Theme- Part1</a></li>
<li><a href='http://www.cozmoslabs.com/2009/06/26/thematic-featured-posts/' rel='bookmark' title='Permanent Link: Add &#8220;Featured Posts&#8221; to your Thematic child theme'>Add &#8220;Featured Posts&#8221; to your Thematic child theme</a></li>
<li><a href='http://www.cozmoslabs.com/2009/03/20/quickly-add-a-category-dropdown-to-thematic-09/' rel='bookmark' title='Permanent Link: Quickly add a Category DropDown to Thematic 0.9'>Quickly add a Category DropDown to Thematic 0.9</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/2008/12/17/replacing-the-thematic-menu-with-a-dropdown-list-of-categories/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>Installing WordPress Child Themes and Customizing the Byty Theme</title>
		<link>http://www.cozmoslabs.com/2008/10/29/installing-wordpress-child-themes-customizing/</link>
		<comments>http://www.cozmoslabs.com/2008/10/29/installing-wordpress-child-themes-customizing/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 14:25:16 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Recomended Reading]]></category>
		<category><![CDATA[Theme Design]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[child theme]]></category>
		<category><![CDATA[installing]]></category>
		<category><![CDATA[Thematic]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=164</guid>
		<description><![CDATA[Source byty.ro Since I&#8217;ve launched by first WordPress Child Theme based on Thematic I thought writing about how you can make small changes to the theme and put your own graphical logo, add css for other plugins, basically create a customized version of it. This post is divided in 4 different parts, particularly: Installing WordPress [...]


Related posts:<ol><li><a href='http://www.cozmoslabs.com/2008/10/25/byty-free-child-theme-built-thematic/' rel='bookmark' title='Permanent Link: Byty the Free Child Theme &#8211; Built on Thematic'>Byty the Free Child Theme &#8211; Built on Thematic</a></li>
<li><a href='http://www.cozmoslabs.com/2009/04/07/green-anyone-try-commune-thematic-child-theme/' rel='bookmark' title='Permanent Link: <span style="color:#7fae52">Green anyone?</span> 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/2008/09/07/use-wordpress-as-a-cms-with-thematic-part1/' rel='bookmark' title='Permanent Link: Use WordPress as a CMS with Thematic Theme- Part1'>Use WordPress as a CMS with Thematic Theme- Part1</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="postimage"><img class="alignnone size-medium wp-image-181" title="byty_theme2" src="http://www.cozmoslabs.com/wp-content/uploads/2008/10/byty_theme2.jpg" alt="" width="300" height="200" /></p>
<p>Source <a href="http://byty.ro/">byty.ro</a></p>
</div>
<p>Since I&#8217;ve launched by first <a href="http://www.cozmoslabs.com/2008/10/25/byty-free-child-theme-built-thematic/">WordPress Child Theme</a> based on Thematic I thought writing about how you can make small changes to the theme and put your own graphical logo, add css for other plugins, basically create a customized version of it.</p>
<p>This post is divided in 4 different parts, particularly:</p>
<ol>
<li><strong>Installing WordPress Child Themes</strong></li>
<li><strong>Adding your Own Logo</strong></li>
<li><strong>Adding a standard top ad banner to your page</strong></li>
<li><strong>Creating css to style plugins that do not display perfectly on your theme </strong></li>
</ol>
<p><span id="more-164"></span></p>
<h3>1. Installing WordPress Child Themes</h3>
<p>WordPress Child Themes are a new concept introduced not a long time ago that allow you to inherit all of the functionality of a parent theme and overwrite the css style, change the images and some parts of the html through the use of <em>functions.php</em> file. We won&#8217;t go in a lot of detail on how to create a Child Theme here, but if you are interested and want to find out more please have a look <a href="http://www.cozmoslabs.com/2008/08/11/10-design-tips-for-your-custom-wordpress-theme-built-with-thematic/">here</a>, <a href="http://www.cozmoslabs.com/2008/09/07/use-wordpress-as-a-cms-with-thematic-part1/">here</a> and <a href="http://themeshaper.com/blog/functions-php-wordpress-child-themes/">here</a>.</p>
<p>To get started you need to <a href="http://themeshaper.com/thematic-for-wordpress/">Download the Thematic Theme</a> (this is the parent theme), then <a href="http://www.cozmoslabs.com/2008/10/25/byty-free-child-theme-built-thematic/">Download the Byty Child Theme</a>.</p>
<p>Once this is out of the way you have to <strong>upload both of the themes to your server</strong> in the <em>/themes</em> folder, just like you would do with any other theme. After the parent and child theme have been uploaded you can now <strong>activate the child theme</strong> (you don&#8217;t have to setup anything for the parent theme).</p>
<p>This is it! Now you know how to install a <strong>WordPress Child Theme</strong>. Easy isn&#8217;t it!</p>
<h3>2. Adding your own logo</h3>
<p>I&#8217;ve designed the Byty Child Theme to be easy to customize. With this in mind you can add your own logo in no time through the use of CSS.</p>
<p>First thing you need to do is to make sure that your logo is 205px by 60px or something similar. You need to upload the logo into the <em>wp-content/themes/byty/images</em> folder.</p>
<p>Next open <em>wp-content/themes/byty/styles.css</em> file and find the <em>#blog-title</em> and <em>#blog-title a</em> declarations.</p>
<p>In the <em>#blog-title</em> declaration remove the comments (<em>/* this is a css comment */</em> ) from <em>background:url(images/logo.gif) 0px 63px no-repeat;</em> and replace <em>logo.gif</em> with your own personal logo.</p>
<p>In the <em>#blog-title a</em> declaration remove the comments from <em>filter:alpha(opacity=0); -moz-opacity: 0;	opacity:0;</em>. This will make the title of your blog transparent, basically hiding it and letting the logo to be displayed in the back. This is good from an accessibility point of view since if you disable the CSS you can still see the text from your Blog Title.</p>
<p>In the end this is how that particular piece of css should look like:</p>
<pre class="brush: css;">
#blog-title{
background:url(images/my_personal_logo.gif) 0px 63px no-repeat;
width:205px;
height:84px;
text-indent:0px;
padding:0px;
padding-top:60px;
border:none;
}
#blog-title a{
display:block;
height:60px;
font-size:60px;
color:#2772b3;
font-family:&quot;Trebuchet MS&quot;;
font-weight:normal;
filter:alpha(opacity=0);
-moz-opacity: 0;
opacity:0;
}
</pre>
<p>If everything is in order, once you reload your page you should see the logo displayed on top of the Child Theme.</p>
<h3>3. Adding a standard top ad banner to your page</h3>
<p>For this we&#8217;ll use the functions.php file that comes with the Byty Child Theme.</p>
<p>Once you open that file you&#8217;ll see the flowing code:</p>
<pre class="brush: php;">
&lt;?php
/* Register Top Add Wiget */
function add_top_ad() {
?&gt;
&lt;div id=&quot;top_ad&quot;&gt;

&lt;!-- Please add a 728px by 90px Standard Banner --&gt;

&lt;/div&gt;
&lt;?php
}
add_action('thematic_belowheader', 'add_top_ad');
?&gt;
</pre>
<p>In place of <em>< ! -- Please add a 728px by 90px Standard Banner -- > </em> you can add your own Google Adsense ad or leave it unchanged if you don&#8217;t what Ads on your site. You can add more ads to your site in the sidebars or in the content of your site through the use of text widgets.</p>
<h3>4. Creating css to style plugins that do not display perfectly on your theme</h3>
<p>If you have a plugin that isn&#8217;t displaying perfectly with the Byty Child Theme I recommend you open <em>wp-content/themes/byty/extra.css</em> and add any other css that you might need in there. This way you have separated files for the theme and your plugins.</p>
<p>As you can see there isn&#8217;t that much to say about this and I hope I&#8217;ve been clear with my explications.</p>
<p>If you&#8217;ve customized or used the Byty Child Theme please let me know! I&#8217;m interested to see for what you are using it!</p>


<p>Related posts:<ol><li><a href='http://www.cozmoslabs.com/2008/10/25/byty-free-child-theme-built-thematic/' rel='bookmark' title='Permanent Link: Byty the Free Child Theme &#8211; Built on Thematic'>Byty the Free Child Theme &#8211; Built on Thematic</a></li>
<li><a href='http://www.cozmoslabs.com/2009/04/07/green-anyone-try-commune-thematic-child-theme/' rel='bookmark' title='Permanent Link: <span style="color:#7fae52">Green anyone?</span> 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/2008/09/07/use-wordpress-as-a-cms-with-thematic-part1/' rel='bookmark' title='Permanent Link: Use WordPress as a CMS with Thematic Theme- Part1'>Use WordPress as a CMS with Thematic Theme- Part1</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/2008/10/29/installing-wordpress-child-themes-customizing/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Database Caching 170/387 queries in 0.469 seconds using disk

Served from: www.cozmoslabs.com @ 2010-07-31 02:37:53 -->