<?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>bavotasan.com &#187; menu</title>
	<atom:link href="http://bavotasan.com/tag/menu/feed/" rel="self" type="application/rss+xml" />
	<link>http://bavotasan.com</link>
	<description>by c.bavota</description>
	<lastBuildDate>Tue, 07 Feb 2012 15:42:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>A Sleek Navigation Menu with CSS3</title>
		<link>http://bavotasan.com/2010/a-sleek-navigation-menu-with-css3/</link>
		<comments>http://bavotasan.com/2010/a-sleek-navigation-menu-with-css3/#comments</comments>
		<pubDate>Mon, 27 Sep 2010 18:04:34 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[horizontal menu]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[nav menu]]></category>
		<category><![CDATA[navigation menu]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=2893</guid>
		<description><![CDATA[I&#8217;m in the middle of working on a new layout and design for Themes by bavotasan.com and I have been tossing around a few ideas for my main navigation menu. I don&#8217;t want anything too elaborate and I feel that jQuery would be better used elsewhere, so I decided to go with only CSS3. I [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m in the middle of working on a new layout and design for <a href="http://themes.bavotasan.com/">Themes by bavotasan.com</a> and I have been tossing around a few ideas for my main navigation menu. I don&#8217;t want anything too elaborate and I feel that jQuery would be better used elsewhere, so I decided to go with only CSS3. I plan on using rounded corners, a background gradient and a simple hover effect. All together it works quite nicely, but of course it only works on modern browsers that support CSS3 so IE users will be missing out once again.</p>
<p>First we need to put together a simple menu as an unordered list:</p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>ul id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;main-navigation&quot;</span><span style="color: #339933;">&gt;</span>
   <span style="color: #339933;">&lt;</span>li <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;first&gt;&lt;a href=&quot;</span>http<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//themes.bavotasan.com&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;</span>
   <span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://themes.bavotasan.com/category/our-themes&quot;</span><span style="color: #339933;">&gt;</span>Themes<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span>
   <span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://demos.bavotasan.com/&quot;</span><span style="color: #339933;">&gt;</span>Demos<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span>
   <span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://bavotasan.com/&quot;</span><span style="color: #339933;">&gt;</span>Blog<span style="color: #339933;">&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></pre></div></td></tr></table></div>

<p>We&#8217;ll give our unordered list the ID <code>main-navigation</code> and our first list items the class <code>first</code>. You&#8217;ll see why in a second.</p>
<p>Next comes the CSS:</p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#main-navigation</span> <span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span>
   -moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
   -khtml-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
   -webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -webkit-gradient<span style="color: #00AA00;">&#40;</span>linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">,</span> from<span style="color: #00AA00;">&#40;</span><span style="color: #cc00cc;">#444444</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> to<span style="color: #00AA00;">&#40;</span><span style="color: #cc00cc;">#666666</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -moz-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span>  <span style="color: #cc00cc;">#444444</span><span style="color: #00AA00;">,</span>  <span style="color: #cc00cc;">#666666</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
   filter<span style="color: #00AA00;">:</span>  progid<span style="color: #3333ff;">:DXImageTransform</span><span style="color: #6666ff;">.Microsoft</span>.gradient<span style="color: #00AA00;">&#40;</span>startColorstr<span style="color: #00AA00;">=</span><span style="color: #ff0000;">'#444444'</span><span style="color: #00AA00;">,</span> endColorstr<span style="color: #00AA00;">=</span><span style="color: #ff0000;">'#666666'</span><span style="color: #00AA00;">&#41;</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;">#444</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">list-style</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: #cc66cc;">0</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;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
   <span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#main-navigation</span> li <span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">border-right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#777</span><span style="color: #00AA00;">;</span>
   <span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#main-navigation</span> li a <span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span> <span style="color: #933;">13px</span> Georgia<span style="color: #00AA00;">,</span> <span style="color: #ff0000;">&quot;Times New Roman&quot;</span><span style="color: #00AA00;">,</span> Times<span style="color: #00AA00;">,</span> <span style="color: #993333;">serif</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">letter-spacing</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">12px</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">border-right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#333</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
   <span style="color: #00AA00;">&#125;</span></pre></div></td></tr></table></div>

<p>The above CSS will give us a menu that looks like this:</p>
<ul id="demo-nav">
<li class="first"><a href="http://themes.bavotasan.com">Home</a></li>
<li><a href="http://themes.bavotasan.com/category/our-themes">Themes</a></li>
<li><a href="http://demos.bavotasan.com/">Demos</a></li>
<li><a href="http://bavotasan.com/">Blog</a></li>
</ul>
<p>A simple underline for the hover doesn&#8217;t quite cut it, so let&#8217;s add a cool hover effect:</p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#main-navigation</span> li a<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -webkit-gradient<span style="color: #00AA00;">&#40;</span>linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">,</span> from<span style="color: #00AA00;">&#40;</span><span style="color: #cc00cc;">#666666</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> to<span style="color: #00AA00;">&#40;</span><span style="color: #cc00cc;">#444444</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -moz-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span>  <span style="color: #cc00cc;">#666666</span><span style="color: #00AA00;">,</span>  <span style="color: #cc00cc;">#444444</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
   filter<span style="color: #00AA00;">:</span>  progid<span style="color: #3333ff;">:DXImageTransform</span><span style="color: #6666ff;">.Microsoft</span>.gradient<span style="color: #00AA00;">&#40;</span>startColorstr<span style="color: #00AA00;">=</span><span style="color: #ff0000;">'#666666'</span><span style="color: #00AA00;">,</span> endColorstr<span style="color: #00AA00;">=</span><span style="color: #ff0000;">'#444444'</span><span style="color: #00AA00;">&#41;</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: #00AA00;">&#125;</span></pre></div></td></tr></table></div>

<p>Hover over a link below to see it in action.</p>
<ul id="demo-nav" class="nav2">
<li class="first"><a href="http://themes.bavotasan.com">Home</a></li>
<li><a href="http://themes.bavotasan.com/category/our-themes">Themes</a></li>
<li><a href="http://demos.bavotasan.com/">Demos</a></li>
<li class="last"><a href="http://bavotasan.com/">Blog</a></li>
</ul>
<p>All we did was reverse the gradient and it adds a cool effect. The only problem is that hovering over the first item gives us some strange squared corners. Fixing that requires some CSS styles for the list item with the classname <code>first</code>.</p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#main-navigation</span> li<span style="color: #6666ff;">.first</span> a <span style="color: #00AA00;">&#123;</span>
   -moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">8px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
   -khtml-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">8px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
   -webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">8px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></td></tr></table></div>

<p>Now our final menu looks and functions exactly how we want it to.</p>
<ul id="demo-nav" class="nav3">
<li class="first"><a href="http://themes.bavotasan.com">Home</a></li>
<li><a href="http://themes.bavotasan.com/category/our-themes">Themes</a></li>
<li><a href="http://demos.bavotasan.com/">Demos</a></li>
<li class="last"><a href="http://bavotasan.com/">Blog</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2010/a-sleek-navigation-menu-with-css3/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Magazine Basic v2.6 WordPress Theme</title>
		<link>http://bavotasan.com/2010/magazine-basic-free-wordpress-theme/</link>
		<comments>http://bavotasan.com/2010/magazine-basic-free-wordpress-theme/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 13:05:03 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Downloads]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[Background]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[engine]]></category>
		<category><![CDATA[engine v2]]></category>
		<category><![CDATA[Function]]></category>
		<category><![CDATA[magazine]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[menu system]]></category>
		<category><![CDATA[New Features]]></category>
		<category><![CDATA[org]]></category>
		<category><![CDATA[system]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=1488</guid>
		<description><![CDATA[Since I have been doing all this talking about WordPress 3.0, I thought it only fitting to start incorporating some if its features into my themes. The first theme to get the upgrade is Magazine Basic. Version 2.6 also has the Arturo Theme Engine v2.0 installed to give a smoother experience while configuring the theme [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://bavotasan.com/wp-content/uploads/2009/11/magabasi.png" alt="magabasi" title="magabasi" width="300" height="225" class="alignright size-full wp-image-1489" />Since I have been doing all this talking about WordPress 3.0, I thought it only fitting to start incorporating some if its features into my themes. The first theme to get the upgrade is <a href="http://themes.bavotasan.com/our-themes/basic-themes/magazine-basic">Magazine Basic</a>. Version 2.6 also has the Arturo Theme Engine v2.0 installed to give a smoother experience while configuring the theme options. The new MB is currently available for download off of <a href="http://wordpress.org/extend/themes/magazine-basic">WordPress.org</a>.<span id="more-1488"></span> </p>
<p>Here are a few of the new features:</p>
<ul>
<li>WordPress 3.0 menu system</li>
<li>WordPress 3.0 background editor</li>
<li>Arturo Theme Engine v2.0</li>
<li>Ajax save function</li>
<li>Cleaner code</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2010/magazine-basic-free-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>114</slash:comments>
		</item>
		<item>
		<title>WordPress 3.0: Checking out the New Menu System</title>
		<link>http://bavotasan.com/2010/wordpress-3-checking-out-the-new-menu-system/</link>
		<comments>http://bavotasan.com/2010/wordpress-3-checking-out-the-new-menu-system/#comments</comments>
		<pubDate>Fri, 21 May 2010 16:43:20 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Default Theme]]></category>
		<category><![CDATA[discussion]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[Function]]></category>
		<category><![CDATA[home]]></category>
		<category><![CDATA[idea]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[Location]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[menu system]]></category>
		<category><![CDATA[New Features]]></category>
		<category><![CDATA[order]]></category>
		<category><![CDATA[page]]></category>
		<category><![CDATA[panel]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[php tags]]></category>
		<category><![CDATA[Second Image]]></category>
		<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=2027</guid>
		<description><![CDATA[The release of WordPress 3.0 is almost here, so I thought it would be a good idea to start an in-depth discussion on some of the new features. One that I am really looking forward to, and that has been getting a lot of buzz, is the new menu system. Inspired by a similar system [...]]]></description>
			<content:encoded><![CDATA[<p>The release of WordPress 3.0 is almost here, so I thought it would be a good idea to start an in-depth discussion on some of the new features. One that I am really looking forward to, and that has been getting a lot of buzz, is the new menu system. Inspired by a similar system created by WooThemes, WP 3.0 allows the user to create multiple menus that can include any category, page or link they choose. <span id="more-2027"></span>I have been testing the latest build (3.0-beta2-14769) and so far, the menu system interface is looking pretty good.</p>
<p>Here are a couple of screen shots to show you what it looks like:<br />
<div id="attachment_2028" class="wp-caption aligncenter" style="width: 560px"><img src="http://bavotasan.com/wp-content/uploads/2010/05/menu1.jpg" alt="" title="menu1" width="550" class="size-full wp-image-2028" /><p class="wp-caption-text">WordPress 3.0's new menu system.</p></div> <div id="attachment_2029" class="wp-caption aligncenter" style="width: 560px"><img src="http://bavotasan.com/wp-content/uploads/2010/05/menu2.jpg" alt="" title="menu2" width="550" class="size-full wp-image-2029" /><p class="wp-caption-text">This is what you will see once you have created a menu.</p></div></p>
<p>Taking a look behind the scenes of TwentyTen, the new default theme for WP 3.0, gives a little insight as to how it all works and what needs to be in place to make sure that the theme you are using will take advantage of this new feature. </p>
<p>First, you need to include the following in your <code>functions.php</code> file:</p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="php" style="font-family:monospace;">add_theme_support<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'nav-menus'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></td></tr></table></div>

<p>Make sure it is placed within the PHP tags. That is all you really need to activate the menu system. A link to the Menus admin page will appear in the Appearance panel. If you really want your theme to stand out, you can even register menu locations so that the user can assign menus to specific areas of your theme templates. This is similar to the sidebar functionality.</p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="php" style="font-family:monospace;">register_nav_menu<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'main'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Main Navigation Menu'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></td></tr></table></div>

<p>This will register a menu with the ID &#8220;main&#8221; and the description &#8220;Main Navigation Menu&#8221;. Including this snippet will make a new panel appear on the Menus admin page (see the second image above). Now users can select which of their menus will appear in that registered location.</p>
<p>Next comes the function to actually display these menus in your theme. This is how TwentyTen uses the function in <code>header.php</code>:</p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_nav_menu<span style="color: #009900;">&#40;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'sort_column'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'menu_order'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'container_class'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'menu-header'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></td></tr></table></div>

<p>The above code displays the first menu you created, ordered how you have set it, within a div container with the classname &#8220;menu-header&#8221;. </p>
<p>Here is a list of all the arguments that the function can take (so far):</p>
<ul>
<li>menu &#8211; The menu that is desired.  Accepts (matching in order) id, slug, name. Defaults to blank.</li>
<li>menu_class &#8211; CSS class to use for the ul container of the menu list. Defaults to &#8216;menu&#8217;.</li>
<li>container &#8211; Whether to wrap the ul, and what to wrap it with. Defaults to &#8216;div&#8217;.</li>
<li>container_class &#8211; the class that is applied to the container. Defaults to blank.</li>
<li>fallback_cb &#8211; If the menu doesn&#8217;t exists, a callback function will fire. Defaults to &#8216;wp_page_menu&#8217;.</li>
<li>before &#8211; Text before the link text.</li>
<li>after &#8211; Text after the link text.</li>
<li>link_before &#8211; Text before the link.</li>
<li>link_after &#8211; Text after the link.</li>
<li>echo &#8211; Whether to echo the menu or return it. Defaults to echo.</li>
<li>depth &#8211; how many levels of the hierarchy are to be included.  0 means all.  Defaults to 0.</li>
<li>walker &#8211; allows a custom walker to be specified.</li>
<li>context &#8211; the context the menu is used in.</li>
<li>theme_location &#8211; the location in the theme to be used.  Must be registered with register_nav_menu() in order to be selectable by the user.</li>
</ul>
<p>You need to use the <code>theme_location</code> argument to call a registered menu:</p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_nav_menu<span style="color: #009900;">&#40;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'theme_location'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'main'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'sort_column'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'menu_order'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'fallback_cb'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'display_home'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></td></tr></table></div>

<p>I have also added the <code>fallback_cb</code> argument to show how to control the default callback if no menu is created. If you don&#8217;t include a callback it will default to <code>wp_page_menu()</code> which will just list your pages. I have assigned a function called <code>display_home()</code> as my callback.</p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> display_home<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;div class=&quot;navigation&quot;&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;'</span><span style="color: #339933;">.</span>get_bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;'</span><span style="color: #339933;">;</span>
	wp_list_categories<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'title_li=&amp;depth=1&amp;number=5'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;/ul&gt;&lt;/div&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></td></tr></table></div>

<p>By default, that will display a home link and 5 categories.</p>
<p>There still seem to be a few bugs in the new menu system, but that is to be expected in a beta version. All in all, it is a great addition to WordPress, and theme developers should rejoice that they can now easily offer more control to their users by taking advantage of one of the many core features that will be included in WP 3.0.</p>
]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2010/wordpress-3-checking-out-the-new-menu-system/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>A Settings Link for Your WordPress Plugins</title>
		<link>http://bavotasan.com/2009/a-settings-link-for-your-wordpress-plugins/</link>
		<comments>http://bavotasan.com/2009/a-settings-link-for-your-wordpress-plugins/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 17:47:38 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[Array]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[Function]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[Lt]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[page]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[return]]></category>
		<category><![CDATA[Settings]]></category>
		<category><![CDATA[tag]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Wordpress Plugins]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=712</guid>
		<description><![CDATA[If you are developing a WordPress plugin, one of the first things I would suggest is adding a &#8220;Settings&#8221; link directly on the plugins page. This makes it easier for users to quickly access the plugin&#8217;s options page without having to search through the admin menu. It is pretty simple to do, and only takes [...]]]></description>
			<content:encoded><![CDATA[<p>If you are developing a WordPress plugin, one of the first things I would suggest is adding a &#8220;Settings&#8221; link directly on the plugins page. This makes it easier for users to quickly access the plugin&#8217;s options page without having to search through the admin menu.<br />
<span id="more-712"></span><br />
It is pretty simple to do, and only takes a few lines of code.</p>
<p>Add the following to your plugin file, within a &lt;php&gt; tag:</p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Add settings link on plugin page</span>
<span style="color: #000000; font-weight: bold;">function</span> your_plugin_settings_link<span style="color: #009900;">&#40;</span><span style="color: #000088;">$links</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> 
  <span style="color: #000088;">$settings_link</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;a href=&quot;options-general.php?page=your_plugin.php&quot;&gt;Settings&lt;/a&gt;'</span><span style="color: #339933;">;</span> 
  <span style="color: #990000;">array_unshift</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$links</span><span style="color: #339933;">,</span> <span style="color: #000088;">$settings_link</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
  <span style="color: #b1b100;">return</span> <span style="color: #000088;">$links</span><span style="color: #339933;">;</span> 
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$plugin</span> <span style="color: #339933;">=</span> plugin_basename<span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">__FILE__</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;plugin_action_links_<span style="color: #006699; font-weight: bold;">$plugin</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'your_plugin_settings_link'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></td></tr></table></div>

<p>Be sure to change the <code>your_plugin.php</code> to the actual filename of your plugin.</p>
]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2009/a-settings-link-for-your-wordpress-plugins/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Using Photoshop Filters in Illustrator</title>
		<link>http://bavotasan.com/2008/using-photoshop-filters-in-illustrator/</link>
		<comments>http://bavotasan.com/2008/using-photoshop-filters-in-illustrator/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 19:37:12 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[Adobe Illustrator]]></category>
		<category><![CDATA[adobe photoshop]]></category>
		<category><![CDATA[advantage]]></category>
		<category><![CDATA[bit]]></category>
		<category><![CDATA[creative suite]]></category>
		<category><![CDATA[cs3]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[illustrator]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[Shape]]></category>
		<category><![CDATA[vector]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=91</guid>
		<description><![CDATA[Sometimes when you&#8217;re working in Adobe Illustrator, you want to take advantage of all those great filters that are easily accessible in Photoshop. The only problem is, though they are available under the Filter menu in Illustrator, they are always grayed out. What gives? Well, what you need to first understand about Illustrator is that [...]]]></description>
			<content:encoded><![CDATA[<p><a class="highslide" href="http://bavotasan.com/wp-content/uploads/2008/12/picture-1.png"><img src="http://bavotasan.com/wp-content/uploads/2008/12/picture-1-166x200.png" alt="" title="picture-1" class="alignright size-thumbnail wp-image-93" /></a>Sometimes when you&#8217;re working in Adobe Illustrator, you want to take advantage of all those great filters that are easily accessible in Photoshop. The only problem is, though they are available under the Filter menu in Illustrator, they are always grayed out. </p>
<p>What gives? <span id="more-91"></span></p>
<p>Well, what you need to first understand about Illustrator is that is works with vector shapes whereas Photoshop works with bitmaps. </p>
<p>What does that all mean? </p>
<p>Quite a bit, but all you really need to know is that if you want to use and/or abuse Photoshop filters in Illustrator, you need to change your vector shapes into bitmaps. </p>
<p>How do you do that? </p>
<p>Very easily. Select your shape, go to Object => Rasterize.</p>
<p><a class="highslide" href="http://bavotasan.com/wp-content/uploads/2008/12/picture-2.png"><img src="http://bavotasan.com/wp-content/uploads/2008/12/picture-2.png" alt="" title="picture-2" class="aligncenter size-thumbnail wp-image-92" /></a></p>
<p>A panel will open up where you can select different options. Choose and select OK. Now you vector shape will probably look pretty crappy, but at least all those amazing Photoshop filters are now available to help make it look better.</p>
]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2008/using-photoshop-filters-in-illustrator/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Two Things You Should Do After Installing WordPress</title>
		<link>http://bavotasan.com/2008/things-you-should-do-after-installing-wordpress/</link>
		<comments>http://bavotasan.com/2008/things-you-should-do-after-installing-wordpress/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 04:58:54 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[Click]]></category>
		<category><![CDATA[customize]]></category>
		<category><![CDATA[default]]></category>
		<category><![CDATA[engine]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[Images]]></category>
		<category><![CDATA[left]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[ranking]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[search engine optimization]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[Settings]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[yahoo]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=33</guid>
		<description><![CDATA[WordPress is a great tool whether you want to install a basic blog or use it as a content management system. Programmers can very easily go in and manipulate the code to get it to do anything they please. Plus there are tons of great plugins available to add every single feature you can imagine. [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress is a great tool whether you want to install a basic blog or use it as a content management system. Programmers can very easily go in and manipulate the code to get it to do anything they please. Plus there are tons of great plugins available to add every single feature you can imagine.</p>
<p>Whenever I work with WordPress, there are a few things I do immediately after a new install. They help with search engine optimization and making things work a little better.<br />
<span id="more-33"></span><br />
<strong>1. Activate pretty-permalinks</strong></p>
<p>When you first install WordPress, the permalinks default to something that looks like this,<br />
<code>http://bavotasan.com/?p=123</code><br />
But we want it to look like this<br />
<code>http://bavotasan.com/tutorials/things-you-should-do-after-installing-wordpress</code><br />
Why? Because that is the first step to optimization your new WordPress install for search engine ranking.</p>
<p>How do you do it?</p>
<div class="sections">
1. After logging in to you wp-admin, click &#8220;Permalinks&#8221; under the &#8220;Settings&#8221; menu on the left<br />
2. Select &#8220;Custom Structure&#8221;<br />
3. Type &#8220;/%category%/%postname%/<br />
4. Click &#8220;Save Changes&#8221;</p>
<p><a class="highslide" href="http://bavotasan.com/wp-content/uploads/2008/10/permalinks.jpg"><img class="alignnone size-thumbnail wp-image-35" title="permalinks" src="http://bavotasan.com/wp-content/uploads/2008/10/permalinks-200x162.jpg" alt="" /></a></div>
<p><strong>2. Make sure thumbnails do not crop to exact dimensions.</strong></p>
<p>When you upload an image to WordPress, the default setting crops the thumbnail to be exactly 150px by 150px. Not too good if the images you are uploading are not perfectly square. (If by chance you do want your images to be cropped to these exact dimensions then you can ignore this one.)</p>
<p>How do you do it?</p>
<div class="sections">
<p>1. After logging in to you wp-admin, click &#8220;Media&#8221; under the &#8220;Settings&#8221; menu on the left<br />
2. Click the checkbox under &#8220;Thumbnail size&#8221; that says &#8220;Crop thumbnail to exact dimensions (normally thumbnails are proportional)&#8221; to remove the check.<br />
3. Click &#8220;Save changes&#8221;</p>
<p><a class="highslide" href="http://bavotasan.com/wp-content/uploads/2008/10/thumbnails.jpg"><img class="alignnone size-thumbnail wp-image-36" title="thumbnails" src="http://bavotasan.com/wp-content/uploads/2008/10/thumbnails-200x162.jpg" alt="" /></a></div>
<p>Even though these are two little things, I find that they are both very important to start things off on the right foot with a new WordPress install.</p>
]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2008/things-you-should-do-after-installing-wordpress/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>

