<?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"
	>

<channel>
	<title>theDailyTut &#124; Once a day. Every day.</title>
	<atom:link href="http://thedailytut.com/feed" rel="self" type="application/rss+xml" />
	<link>http://thedailytut.com</link>
	<description>Your daily check-up to have a neck-up in a post-Web 2.0 world.</description>
	<pubDate>Wed, 20 Aug 2008 15:09:37 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>An Image Wordpress Navigation with Hover and Active Links</title>
		<link>http://thedailytut.com/wordpress/a-wordpress-image-navigation-with-hover-and-active-links</link>
		<comments>http://thedailytut.com/wordpress/a-wordpress-image-navigation-with-hover-and-active-links#comments</comments>
		<pubDate>Mon, 07 Jul 2008 16:00:31 +0000</pubDate>
		<dc:creator>Tommy M</dc:creator>
		
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://thedailytut.com/?p=4</guid>
		<description><![CDATA[Wordpress has some great functions to display a menu to the user (list_cats(), wp_list_pages(), etc.) but no straightforward way to incorporate images into these menus.
In this tutorial I&#8217;ll show you how to use your own image menu, apply a highlighting effect, and top it off with an active state as well.

1. Cut Up Menu
Go ahead [...]]]></description>
			<content:encoded><![CDATA[<p>Wordpress has some great functions to display a menu to the user (list_cats(), wp_list_pages(), etc.) but no straightforward way to incorporate images into these menus.</p>
<p>In this tutorial I&#8217;ll show you how to use your own image menu, apply a highlighting effect, and top it off with an active state as well.</p>
<p><span id="more-4"></span></p>
<h3>1. Cut Up Menu</h3>
<p>Go ahead and open up Photoshop and make a great looking menu. Then we&#8217;re going to slice n&#8217; dice. I&#8217;ll walk you through this real quick. Click on the images below if you want a bigger picture of what I&#8217;m doing in Photoshop.</p>
<div class="article_image"><img src="http://thedailytut.com/images/july08/wordpress_menu_1.gif" alt="Wordpress Menu" /></div>
<p>Cut each individual image link from your menu. Second, press CRTL + N and a new window dialog will open up with the sizes of the cut you just made. Hit &#8220;OK&#8221;.</p>
<div class="article_image"><img src="http://thedailytut.com/images/july08/wordpress_menu_4.gif" alt="Wordpress Menu" /></div>
<p>Then paste our cut image to the new image window just created and save it within the &#8220;images&#8221; folder of your theme.</p>
<div class="article_image"><img src="http://thedailytut.com/images/july08/wordpress_menu_5.gif" alt="Wordpress Menu" /></div>
<h3>2. Create Categories</h3>
<p>If you&#8217;re starting from a fresh install of Wordpress, then you&#8217;ll need to go ahead and create the categories that you&#8217;ll be using as links for your navigation. <em>Note: Make sure your &#8220;Category Slug&#8221; does not contain any spaces.</em></p>
<h3>3. Modify header.php</h3>
<p>For this example, the header.php will contain your menu. Let me give you the code and explain each part.</p>
<p>Place the follwing directly above your &lt;body&gt; tag:</p>

<div class="wp_syntax"><div class="code"><pre class="php"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_home<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000033;">$show_category</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000033;">$category</span> <span style="color: #339933;">=</span> get_the_category<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
        <span style="color: #000033;">$show_category</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">' id=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000033;">$category</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">cat_name</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;'</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>The first thing we hit is the IF statement. This asks if the page we&#8217;re currently viewing is the home page; if TRUE, then go ahead and assign an empty string value to $show_category. If the answer is FALSE, then we retrieve the current category we&#8217;re viewing by using get_the_category(). This retrieves an array of categories, since you can put an article in more than one category. However, we only want to retrieve the first category in this array, so we retrieve the first category ($category[0]) and grab its name (cat_name). We get the $show_category string ready with the required CSS properties and we&#8217;re ready to go. (If the cat_name is &#8216;XHTML&#8217;, then $show_category is id=&#8221;XHTML&#8221;.</p>

<div class="wp_syntax"><div class="code"><pre class="php"><span style="color: #339933;">&lt;</span>body<span style="color: #339933;">&lt;</span>?php <span style="color: #990000;">echo</span> <span style="color: #000033;">$show_category</span><span style="color: #339933;">;</span> ?<span style="color: #339933;">&gt;&gt;</span></pre></div></div>

<p>Next we have our modify our current body tag to echo the value given to use from the operation above. If we&#8217;re currently on the home page, then $show_category = &#8221;, thus the output will be simply &lt;body&gt;. However, if we are viewing a category post, then it will look like &lt;body id=&#8221;category_name_here&#8221;&gt;.</p>
<p>We modified the $show_category string to include the CSS properties as opposed to included them later to maintain XHTML compliance. If we did not include the CSS properties and instead made ourtag look like &lt;body id=&#8221;&lt;?php echo$show_category; ?&gt;&gt;, then the homepage  tag would look be &lt;body id=&#8221;"&gt;.</p>
<p>Repalce current menu list with the following:</p>

<div class="wp_syntax"><div class="code"><pre class="php"><span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;menu&quot;</span><span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>ul<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;xhtml-css&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;/category/xhtml-css&quot;</span><span style="color: #339933;">&gt;&lt;</span>span<span style="color: #339933;">&gt;</span>xhtml<span style="color: #339933;">-</span>css<span style="color: #339933;">&lt;/</span>span<span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;php-mysql&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;/category/php-mysql&quot;</span><span style="color: #339933;">&gt;&lt;</span>span<span style="color: #339933;">&gt;</span>php<span style="color: #339933;">-</span>mysql<span style="color: #339933;">&lt;/</span>span<span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;ajax&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;/category/ajax&quot;</span><span style="color: #339933;">&gt;&lt;</span>span<span style="color: #339933;">&gt;</span>ajax<span style="color: #339933;">&lt;/</span>span<span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;wordpress&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;/category/wordpress&quot;</span><span style="color: #339933;">&gt;&lt;</span>span<span style="color: #339933;">&gt;</span>wordpress<span style="color: #339933;">&lt;/</span>span<span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;joomla&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;/category/joomla&quot;</span><span style="color: #339933;">&gt;&lt;</span>span<span style="color: #339933;">&gt;</span>joomla<span style="color: #339933;">&lt;/</span>span<span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;other&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;/category/other/&quot;</span><span style="color: #339933;">&gt;&lt;</span>span<span style="color: #339933;">&gt;</span>other<span style="color: #339933;">&lt;/</span>span<span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Here I have a simple unordered list (&lt;ul&gt;) with each list-item (&lt;li&gt;) linking to its corresponding category archive. Each list-item containing its own unique class property. The category &#8220;xhtml-css&#8221; will be defined as li .xhtml-css in our CSS template. I added an addition &lt;span&gt; tag within each list-item for added SEO. We&#8217;re going to hide the text within the &lt;span&gt; tag later and instead show our image based navigation.</p>
<h3>4. Modify CSS</h3>
<p>Now for the fun part: giving our menu some shape.</p>

<div class="wp_syntax"><div class="code"><pre class="css"><span style="color: #cc00cc;">#menu</span> <span style="color: #66cc66;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">display</span><span style="color: #66cc66;">:</span> <span style="color: #993333;">block</span><span style="color: #66cc66;">;</span>
    <span style="color: #000000; font-weight: bold;">width</span><span style="color: #66cc66;">:</span> <span style="color: #933;">672px</span><span style="color: #66cc66;">;</span>
    <span style="color: #000000; font-weight: bold;">float</span><span style="color: #66cc66;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #66cc66;">;</span>
    <span style="color: #000000; font-weight: bold;">background</span><span style="color: #66cc66;">:</span> <span style="color: #cc00cc;">#fff</span><span style="color: #66cc66;">;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>This just defines the container (&lt;div id=&#8221;menu&#8221;&gt;) that&#8217;s holding our menu.</p>

<div class="wp_syntax"><div class="code"><pre class="css"><span style="color: #cc00cc;">#menu</span> ul <span style="color: #66cc66;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #66cc66;">:</span> <span style="color: #933;">1px</span><span style="color: #66cc66;">;</span>
    <span style="color: #000000; font-weight: bold;">height</span><span style="color: #66cc66;">:</span> <span style="color: #933;">20px</span><span style="color: #66cc66;">;</span>
    <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #66cc66;">:</span> <span style="color: #933;">0</span><span style="color: #66cc66;">;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>This gives our unordered list some shape.</p>

<div class="wp_syntax"><div class="code"><pre class="css"><span style="color: #cc00cc;">#menu</span> li <span style="color: #66cc66;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #66cc66;">:</span> <span style="color: #993333;">none</span><span style="color: #66cc66;">;</span>
    <span style="color: #000000; font-weight: bold;">display</span><span style="color: #66cc66;">:</span> <span style="color: #993333;">inline</span><span style="color: #66cc66;">;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>We have to add the list-style:none to make those bullets go away, and finally we want each list-item to display in a line. So, naturally, we say display:inline.</p>

<div class="wp_syntax"><div class="code"><pre class="css"><span style="color: #cc00cc;">#menu</span> li a <span style="color: #66cc66;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #66cc66;">:</span> <span style="color: #933;">2px</span> <span style="color: #933;">4px</span><span style="color: #66cc66;">;</span>
    <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #66cc66;">:</span> <span style="color: #933;">0</span><span style="color: #66cc66;">;</span>
    <span style="color: #000000; font-weight: bold;">display</span><span style="color: #66cc66;">:</span> <span style="color: #993333;">block</span><span style="color: #66cc66;">;</span>
    <span style="color: #000000; font-weight: bold;">float</span><span style="color: #66cc66;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #66cc66;">;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>Again, simply making each link in our menu a block, and having it float left. The margin simply gives it spacing from the other blocks.</p>

<div class="wp_syntax"><div class="code"><pre class="css"><span style="color: #cc00cc;">#menu</span> a span <span style="color: #66cc66;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">position</span><span style="color: #66cc66;">:</span> <span style="color: #993333;">relative</span><span style="color: #66cc66;">;</span>
    <span style="color: #000000; font-weight: bold;">display</span><span style="color: #66cc66;">:</span> <span style="color: #993333;">block</span><span style="color: #66cc66;">;</span>
    <span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #66cc66;">:</span> <span style="color: #933;">-1</span><span style="color: #66cc66;">;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>Remember that &lt;span&gt; tag we added to each &lt;li&gt; above? By making the &#8220;z-index: -1&#8243; here we make the text appear behind the content of the website, but still readable to screen readers and crawlers. This makes it so that search engines like Google can read your links while the average user only sees the image for that link. Some developers suggest using &#8220;display:none&#8221;, but Microsoft&#8217;s web crawler has a problem with this method.</p>

<div class="wp_syntax"><div class="code"><pre class="css">li <span style="color: #6666ff;">.xhtml-css</span> <span style="color: #66cc66;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">background</span><span style="color: #66cc66;">:</span> <span style="color: #993333;">url</span><span style="color: #66cc66;">&#40;</span><span style="color: #933;">images/xhtml-css<span style="color: #6666ff;">.gif</span></span><span style="color: #66cc66;">&#41;</span> <span style="color: #933;">0</span> <span style="color: #933;">0</span> <span style="color: #993333;">no-repeat</span><span style="color: #66cc66;">;</span>
    <span style="color: #000000; font-weight: bold;">display</span><span style="color: #66cc66;">:</span> <span style="color: #993333;">block</span><span style="color: #66cc66;">;</span>
    <span style="color: #000000; font-weight: bold;">width</span><span style="color: #66cc66;">:</span> <span style="color: #933;">109px</span><span style="color: #66cc66;">;</span>
    <span style="color: #000000; font-weight: bold;">height</span><span style="color: #66cc66;">:</span> <span style="color: #933;">20px</span><span style="color: #66cc66;">;</span>
    <span style="color: #000000; font-weight: bold;">outline</span><span style="color: #66cc66;">:</span> <span style="color: #993333;">none</span><span style="color: #66cc66;">;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p style="text-align: center; font-size:10px; line-height: 14px;"><img src="http://thedailytut.com/images/july08/wordpress_menu_2.gif" alt="" /><br />
<em>Note: The image above should help you understand<br />
</em><em>how </em><em>the &#8220;background-position&#8221; property works.</em></p>
<p>Here is where we display our image for the &#8220;xhtml-css&#8221; category. We named the image for this link &#8220;xhtml-css.gif&#8221; and stored it inside the theme&#8217;s image folder. We set trailing &#8220;0 0&#8243; after background: url(images/xhtml-css.gif) to give the image the position 0 pixels from the left and 0 pixels from the top (basically, it stays where it is). We also define &#8220;outline: none;&#8221; so that pesky dotted outline won&#8217;t appear around each image when you click it.</p>

<div class="wp_syntax"><div class="code"><pre class="css">li <span style="color: #6666ff;">.xhtml-css</span><span style="color: #3333ff;">:hover</span> <span style="color: #66cc66;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #66cc66;">:</span> <span style="color: #933;">0</span> -<span style="color: #933;">20px</span><span style="color: #66cc66;">;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>This overrides the background: url(images/xhtml-css.gif) 0 0 no-repeat; and instead moves the image down 20 pixels to display the gray hover effect.</p>

<div class="wp_syntax"><div class="code"><pre class="css"><span style="color: #cc00cc;">#xhtml-css</span> li <span style="color: #6666ff;">.xhtml-css</span> <span style="color: #66cc66;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #66cc66;">:</span> <span style="color: #933;">0</span> -<span style="color: #933;">40px</span> !important<span style="color: #66cc66;">;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>This looks very similar to the one above, but is slightly different. We added the ID (#) in before each class tag. The reason is that because the ID is being given to us from the &lt;body id=&#8221;xhtml-css&#8221;&gt; tag. For example, we are viewing the &#8220;xhtml-css&#8221; category. Using the operation is part 1, we made the &lt;body&gt; tag have the id &#8220;xhtml-css&#8221;, thus giving us &lt;body id=&#8221; xhtml-css&#8221;&gt;. In CSS form this looks like body #xhtml-css. We use our body ID (#xhtml-css), then add our list-item (#xhtml-css li), and lastly the class for that list-item (#xhtml-css li . xhtml-css).</p>
<p>Lastly, since we want to apply the same hover effect to each link (php-mysql, ajax, wordpress, Joomla and other categories) we simply add a coma and the next list-item.</p>

<div class="wp_syntax"><div class="code"><pre class="css">li <span style="color: #6666ff;">.xhtml-css</span><span style="color: #3333ff;">:hover</span>, li <span style="color: #6666ff;">.php-mysql</span><span style="color: #3333ff;">:hover</span>, li <span style="color: #6666ff;">.ajax</span><span style="color: #3333ff;">:hover</span>, li <span style="color: #6666ff;">.joomla</span><span style="color: #3333ff;">:hover</span> , li <span style="color: #6666ff;">.other</span><span style="color: #3333ff;">:hover</span>, li <span style="color: #6666ff;">.wordpress</span><span style="color: #3333ff;">:hover</span> <span style="color: #66cc66;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #66cc66;">:</span> <span style="color: #933;">0</span> -<span style="color: #933;">20px</span><span style="color: #66cc66;">;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>We want to do the same for an active link.</p>

<div class="wp_syntax"><div class="code"><pre class="css"><span style="color: #cc00cc;">#xhtml-css</span> li <span style="color: #6666ff;">.xhtml-css</span>, <span style="color: #cc00cc;">#php-mysql</span> li <span style="color: #6666ff;">.php-mysql</span>, <span style="color: #cc00cc;">#ajax</span> li <span style="color: #6666ff;">.ajax</span>, <span style="color: #cc00cc;">#joomla</span> li <span style="color: #6666ff;">.joomla</span>,
<span style="color: #cc00cc;">#other</span> li <span style="color: #6666ff;">.other</span>, <span style="color: #cc00cc;">#wordpress</span> li <span style="color: #6666ff;">.wordpress</span> <span style="color: #66cc66;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #66cc66;">:</span> <span style="color: #933;">0</span> -<span style="color: #933;">40px</span> !important<span style="color: #66cc66;">;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<h3>Other Modifications</h3>
<p>If you have an article stored in mutliple categories, and you want each category link to be displayed as &#8220;active&#8221; when you are on that link, then we have to make a small modification to the code in section 2 (Modify your header.php):</p>

<div class="wp_syntax"><div class="code"><pre class="php"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>get_the_category<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">as</span> <span style="color: #000033;">$category</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> 
    <span style="color: #990000;">echo</span> <span style="color: #0000ff;">' class=&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000033;">$category</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">cat_name</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot;'</span><span style="color: #339933;">;</span> 
<span style="color: #009900;">&#125;</span> 
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>We replace the preview code with a &#8220;foreach&#8221; loop. What this does is it grabs all the categories that are currently active (any article that is being display that is filed under multiple categories), grabs the name of that category, and stores it to $show_category. For example, if we were viewing a category filed under &#8220;category1&#8243; and &#8220;category2&#8243;, $show_category would be <code>class="body-category1" class="body-category2"</code>. This makes it so the navigation would display the &#8220;active&#8221; image effect for those two category menu items.</p>
<p>Also note that I added &#8220;body-&#8221; within the class property. If we did not, then we would have two classes named &#8220;xhtml-css&#8221; when you viewed an article filed under &#8220;xhtml-css&#8221;. This is because we would have the body tag look something like &lt;body class=&#8221;xhtml-css&#8221;&gt; and the list-tem for that category be &lt;li class=&#8221;xhtml-css&#8221;&gt; which would shatter web standards. So, in order to complete this change, we&#8217;ll modify our &#8220;active&#8221; CSS properties to look something like this:</p>

<div class="wp_syntax"><div class="code"><pre class="css"><span style="color: #6666ff;">.body-xhtml-css</span> li <span style="color: #6666ff;">.xhtml-css</span>, <span style="color: #6666ff;">.body-php-mysql</span> li <span style="color: #6666ff;">.php-mysql</span>, <span style="color: #6666ff;">.body-ajax</span> li <span style="color: #6666ff;">.ajax</span>, <span style="color: #6666ff;">.body-joomla</span> li <span style="color: #6666ff;">.joomla</span> , <span style="color: #6666ff;">.body-other</span> li <span style="color: #6666ff;">.other</span>, <span style="color: #6666ff;">.body-wordpress</span> li <span style="color: #6666ff;">.wordpress</span> <span style="color: #66cc66;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #66cc66;">:</span> <span style="color: #933;">0</span> -<span style="color: #933;">20px</span> !important<span style="color: #66cc66;">;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<h3>Conclusion</h3>
<p>Adding an image-based navigation to Wordpress is not as hard as it seems. Using simple images is a great way to have your menu stand out from the rest of the site. Just don&#8217;t make it too flashy:-)</p>
<p>Hope your enjoyed this original tutorial! Feedback and questions are welcome in the comments below.</p>
]]></content:encoded>
			<wfw:commentRss>http://thedailytut.com/wordpress/a-wordpress-image-navigation-with-hover-and-active-links/feed</wfw:commentRss>
		</item>
		<item>
		<title>theDailyTut Offical Beta Launch!</title>
		<link>http://thedailytut.com/other/thedailytut-offical-beta-launch</link>
		<comments>http://thedailytut.com/other/thedailytut-offical-beta-launch#comments</comments>
		<pubDate>Thu, 03 Jul 2008 05:07:20 +0000</pubDate>
		<dc:creator>Tommy M</dc:creator>
		
		<category><![CDATA[other]]></category>

		<guid isPermaLink="false">http://thedailytut.com/?p=3</guid>
		<description><![CDATA[Welcome to theDailyTut.com Beta! This website is the aftereffect of an idea that spawned on me two days ago after viewing a tutorial website. I saw the problem was that my homepage (this tutorial website that I speak of) was updated maybe once every two or three days. I was never exactly sure when it [...]]]></description>
			<content:encoded><![CDATA[<p>Welcome to theDailyTut.com Beta! This website is the aftereffect of an idea that spawned on me two days ago after viewing a tutorial website. I saw the problem was that my homepage (this tutorial website that I speak of) was updated maybe once every two or three days. I was never exactly sure when it was updated. I had enough rss feeds to look after, so I decided to create a website where you, the inspired web designer/developer, can know for certain that a tutorial will be posted <em>daily </em>regarding xhtml, css, php, mysql, ajax, javascript, rails, cms, and other web technologies.</p>
<p><span id="more-3"></span>Starting <span style="text-decoration: line-through;">tomorrow</span> July 6th, I will post a tutorial a day (plus a bit more to make up for lost time), every day, 7 days a week, 365 days a year.</p>
<p>We are looking for contributors!</p>
<p>If you are interested in being part of a top-notch team of web designers and developers, that have an influencial and descriptive way with words, then shoot us an email at <a href="mailto:contribute@thedailytut.com">contribute@thedailytut.com</a>.</p>
<p>Each contributor is given a profit share of the amount of revenue the site generates. For example, if the website generates $500.00/month and there are 5 contributors for that month, then each contributor receives $100.00 for that month. Each contributor will have to make a reasonable amount of original tutorial updates him(her)self and/or gather freely distributed tutorials with the original link provided. This profit-sharing plan Should hopefully take into effect August 2008. Make sense? Let&#8217;s get started.</p>
<p>If you have any ideas, comments, questions or feedback, feel free to reply below.</p>
<p>Sincerely,</p>
<p>theDailyTut.com Team</p>
]]></content:encoded>
			<wfw:commentRss>http://thedailytut.com/other/thedailytut-offical-beta-launch/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
