<?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>Thesis Tutor &#187; Nav Menu</title> <atom:link href="http://thesistutor.com/category/nav-menu/feed/" rel="self" type="application/rss+xml" /><link>http://thesistutor.com</link> <description>Tutorials For The Thesis Wordpress Theme &#124; Video Tutorials For The Thesis Wordpress Theme</description> <lastBuildDate>Fri, 09 Jul 2010 04:50:05 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=abc</generator> <item><title>How to Register Multiple WordPress Menu Locations in Thesis</title><link>http://thesistutor.com/how-to-register-multiple-wordpress-menu-locations-in-thesis/</link> <comments>http://thesistutor.com/how-to-register-multiple-wordpress-menu-locations-in-thesis/#comments</comments> <pubDate>Thu, 24 Jun 2010 13:00:11 +0000</pubDate> <dc:creator>Matt</dc:creator> <category><![CDATA[Nav Menu]]></category><guid
isPermaLink="false">http://thesistutor.com/?p=1036</guid> <description><![CDATA[Before you can start this tutorial, you&#8217;ll need to follow the tutorial on how to add the WordPress 3 menu to Thesis. Once you finish that tutorial, you will have the following in your custom_functions.php: add_action('init','register_menu'); remove_action('thesis_hook_before_header','thesis_nav_menu'); add_action('thesis_hook_before_header','wordpress_menu_support'); function register_menu() { register_nav_menus( array( 'primary'=>'Primary Menu' )); } function wordpress_menu_support() { if (function_exists('wp_nav_menu')) wp_nav_menu('theme_location=primary&#038;fallback_cb=thesis_nav_menu'); else thesis_nav_menu(); [...]]]></description> <content:encoded><![CDATA[<p></p><p>Before you can start this tutorial, you&#8217;ll need to follow the tutorial on <a
href="http://thesistutor.com/how-to-add-wordpress-3-menu-to-thesis/">how to add the WordPress 3 menu to Thesis</a>.</p><p>Once you finish that tutorial, you will have the following in your <code>custom_functions.php</code>:</p><pre>
add_action('init','register_menu');
remove_action('thesis_hook_before_header','thesis_nav_menu');
add_action('thesis_hook_before_header','wordpress_menu_support');

function register_menu() {
register_nav_menus(
    array(
        'primary'=>'Primary Menu'
    ));
}

function wordpress_menu_support() {
if (function_exists('wp_nav_menu'))
	wp_nav_menu('theme_location=primary&#038;fallback_cb=thesis_nav_menu');
else
	thesis_nav_menu();
}
</pre><p>Now we need to do two things:</p><ol><li>Register the menu area.</li><li>Hook the menu area into place. In this example I&#8217;ll be putting a menu above the footer.</li></ol><p>To accomplish this, we will add the following to our code from above:</p><pre>
add_action('init','register_menu');
remove_action('thesis_hook_before_header','thesis_nav_menu');
add_action('thesis_hook_before_header','wordpress_menu_support');
<strong>add_action('thesis_hook_before_footer','footer_menu');</strong>

function register_menu() {
register_nav_menus(
    array(
        'primary'=>'Primary Menu'<strong>,
        'footer'=>'Footer Menu'</strong>
    ));
}

<strong>function footer_menu() {
wp_nav_menu('theme_location=footer');
}</strong>

function wordpress_menu_support() {
if (function_exists('wp_nav_menu'))
	wp_nav_menu('theme_location=primary&#038;fallback_cb=thesis_nav_menu');
else
	thesis_nav_menu();
}
</pre><p>For the register part, I simply added a comma then <code>'footer'=>'Footer Menu'</code>. The first part, <code>'footer'</code> is the menu slug. The second part, <code>'Footer Menu'</code> is what will be displayed in the WordPress admin. So, if you were going to add a menu above the content, you may do something like this <code>'content-menu'=>'Content Menu'</code>.</p><p>The second thing I did was add a function that contains my menu.</p><pre>function footer_menu() {
wp_nav_menu('theme_location=footer');
}</pre><p>If I wanted to add the menu above the content, I would do something like this:</p><pre>
function content_menu() {
wp_nav_menu('theme_location=content-menu');
}
</pre><p>Lastly, I hooked my function into place with</p><pre>add_action('thesis_hook_before_footer','footer_menu');</pre><p> If I were putting a menu area above the content, I may do something like this:<pre>add_action('thesis_hook_before_content','content_menu');</pre>]]></content:encoded> <wfw:commentRss>http://thesistutor.com/how-to-register-multiple-wordpress-menu-locations-in-thesis/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>How To Add WordPress 3.0 Menu To Thesis</title><link>http://thesistutor.com/how-to-add-wordpress-3-menu-to-thesis/</link> <comments>http://thesistutor.com/how-to-add-wordpress-3-menu-to-thesis/#comments</comments> <pubDate>Tue, 22 Jun 2010 20:25:55 +0000</pubDate> <dc:creator>Matt</dc:creator> <category><![CDATA[Nav Menu]]></category><guid
isPermaLink="false">http://thesistutor.com/?p=1023</guid> <description><![CDATA[I have seen a few ways to add WordPress 3.0 menu support to Thesis and they do &#8220;work&#8221;, but they really aren&#8217;t optimal. So, I have written a fix for this issue until Thesis can get updated. First, let&#8217;s identify exactly what we need to get accomplished. This tutorial will only cover replacing the current [...]]]></description> <content:encoded><![CDATA[<p></p><p><span
class="drop_cap">I</span> have seen a few ways to add WordPress 3.0 menu support to <a
href="http://thesistutor.com/diythemes">Thesis</a> and they do &#8220;work&#8221;, but they really aren&#8217;t optimal. So, I have written a fix for this issue until <a
href="http://thesistutor.com/diythemes\">Thesis</a> can get updated.</p><p>First, let&#8217;s identify exactly what we need to get accomplished. This tutorial will only cover replacing the current navigation menu, called by the function <code>thesis_nav_menu();</code>, if and only if a replacement has been assigned by the WordPress functionality. It is important to remember that you lose some, but not all, of the CSS native to the Thesis navigation.</p><p>Let&#8217;s get started by opening <code>custom_functions.php</code> and entering the following function:</p><pre>function register_menu() {
register_nav_menus(
    array(
        'primary'=> 'Primary Menu'
    ));
}</pre><p>Basically, this allows us to register the area where we want a navigation bar to appear. Since we are using an array, this will allow us to go back at any point and register another area.</p><p>Next, we need set up the following 3 scenarios:</p><ol><li>No WordPress menu is detected, so the Thesis menu is shown.</li><li>At least one WordPress menu exists, but none are selected for the nav bar, so the Thesis navigation is shown.</li><li>At least one WordPress menu exists and one is selected for the area.</li></ol><p>It is important to remember that this next function must be repeated to register other areas. Unlike <code>register_nav_menus();</code>, each area where you want a navigation bar to appear must have its own code to register. For the primary navigation, we will use the following code:</p><pre>
function wordpress_menu_support() {
if (function_exists('wp_nav_menu'))
	wp_nav_menu('theme_location=primary&#038;fallback_cb=thesis_nav_menu');
else
	thesis_nav_menu();
}
</pre><p>Now, let&#8217;s register the menus and areas and take the default <a
href="http://thesistutor.com/diythemes">Thesis</a> nav menu out.</p><pre>
add_action( 'init' , 'register_menu' );
remove_action('thesis_hook_before_header','thesis_nav_menu');
add_action('thesis_hook_before_header','wordpress_menu_support');
</pre><p>Now, Let me show you what all the code looks like together:</p><pre>
add_action('init','register_menu');
remove_action('thesis_hook_before_header','thesis_nav_menu');
add_action('thesis_hook_before_header','wordpress_menu_support');

function register_menu() {
register_nav_menus(
    array(
        'primary'=>'Primary Menu'
    ));
}

function wordpress_menu_support() {
if (function_exists('wp_nav_menu'))
	wp_nav_menu('theme_location=primary&#038;fallback_cb=thesis_nav_menu');
else
	thesis_nav_menu();
}
</pre><p>Remember that the WordPress menu system is not as clean and robust as <a
href="http://thesistutor.com/diythemes">Thesis</a>, so you will have to make some CSS changes. Some of the things that the WordPress menu does not contain are the home, current and current-parent classes. Why? Because <a
href="http://thesistutor.com/diythemes">Thesis</a>&#8216; nav menu has a specific purpose and the WordPress menu system is for generic menu creation.</p> ]]></content:encoded> <wfw:commentRss>http://thesistutor.com/how-to-add-wordpress-3-menu-to-thesis/feed/</wfw:commentRss> <slash:comments>13</slash:comments> </item> <item><title>How To Move Nav Menu Above Sidebars</title><link>http://thesistutor.com/how-to-move-nav-menu-above-sidebars/</link> <comments>http://thesistutor.com/how-to-move-nav-menu-above-sidebars/#comments</comments> <pubDate>Mon, 20 Jul 2009 17:55:13 +0000</pubDate> <dc:creator>Matt</dc:creator> <category><![CDATA[Nav Menu]]></category><guid
isPermaLink="false">http://thesistutor.com/?p=445</guid> <description><![CDATA[Moving the nav menu around in Thesis is super easy. If you check out hooks, you will start to figure out that the nav menu can pretty much go anywhere. I this particular video, I show how to put the nav menu above the sidebars. This is especially useful if you have a bunch of [...]]]></description> <content:encoded><![CDATA[<p></p><p><embed
src="http://thesistutor.com/wp-content/uploads/2009/07/Nav-Above-Sidebar.mov" width="740" height="470"/></p><p>Moving the nav menu around in <a
href="http://www.shareasale.com/r.cfm?b=198392&#038;u=403159&#038;m=24570&#038;urllink=&#038;afftrack=">Thesis</a> is super easy. If you check out <a
href="http://diythemes.com/thesis/rtfm/hooks/">hooks</a>, you will start to figure out that the nav menu can pretty much go anywhere. I this particular video, I show how to put the nav menu above the sidebars. This is especially useful if you have a bunch of nav menu items, as they tend to get cluttered in a normal nav arrangement. <a
href="http://www.shareasale.com/r.cfm?b=198392&#038;u=403159&#038;m=24570&#038;urllink=&#038;afftrack=">Thesis&#8217;</a> super powerful PHP engine makes nav bar adjustments easy as pie. Or if you don&#8217;t like pie then cake.</p><p>Here is the PHP that I use in this tutorial:</p><pre>
remove_action('thesis_hook_before_header','thesis_nav_menu');
add_action('thesis_hook_before_sidebars','thesis_nav_menu');
</pre><p>And here is the single line of CSS I use:</p><pre>.custom .menu li { float: none; }</pre><p>Good luck using <a
href="http://www.shareasale.com/r.cfm?b=198392&#038;u=403159&#038;m=24570&#038;urllink=&#038;afftrack=">Thesis</a>! Be sure to send all requests to:<br
/> ThesisTutor [at] gmail [dot] com</p><p>Remember to <a
href="http://www.shareasale.com/r.cfm?b=198392&#038;u=403159&#038;m=24570&#038;urllink=&#038;afftrack=">Get Thesis</a> or <a
href="http://www.shareasale.com/r.cfm?b=198392&#038;u=403159&#038;m=24570&#038;urllink=&#038;afftrack=">Upgrade to the Thesis Developers Option!</a></p> ]]></content:encoded> <wfw:commentRss>http://thesistutor.com/how-to-move-nav-menu-above-sidebars/feed/</wfw:commentRss> <slash:comments>10</slash:comments> <enclosure
url="http://thesistutor.com/wp-content/uploads/2009/07/Nav-Above-Sidebar.mov" length="13922937" type="video/quicktime" /> </item> <item><title>How To Make Rounded Tabs In Nav Menu</title><link>http://thesistutor.com/how-to-make-rounded-tabs-in-nav-menu/</link> <comments>http://thesistutor.com/how-to-make-rounded-tabs-in-nav-menu/#comments</comments> <pubDate>Wed, 24 Jun 2009 21:18:18 +0000</pubDate> <dc:creator>Matt</dc:creator> <category><![CDATA[Nav Menu]]></category><guid
isPermaLink="false">http://thesistutor.com/?p=271</guid> <description><![CDATA[This an Advanced Tutorial! Thesis 1.6 Update! Here is some updated code to make your rounded tabs Thesis 1.6 compliant: body.custom { background: #eee; padding-top: 3em; } .custom #header { border-left: 1px #ccc solid; border-right: 1px #ccc solid; border-top: 1px #ccc solid; } .custom #header #logo { text-indent: -9999px; } .custom #header #tagline { text-indent: [...]]]></description> <content:encoded><![CDATA[<p></p><p><embed
src="http://thesistutor.com/wp-content/uploads/2009/06/rounded_corners.mov" width="740" height="470" ><br
/> <strong>This an Advanced Tutorial!</strong></p><h3><a
href="http://www.shareasale.com/r.cfm?b=198392&#038;u=403159&#038;m=24570&#038;urllink=&#038;afftrack=">Thesis 1.6 Update!</a></h3><p>Here is some updated code to make your rounded tabs Thesis 1.6 compliant:</p><pre>body.custom { background: #eee; padding-top: 3em; }
.custom #header { border-left: 1px #ccc solid; border-right: 1px #ccc solid; border-top: 1px #ccc solid; }
	.custom #header #logo { text-indent: -9999px; }
	.custom #header #tagline { text-indent: -9999px; }
.custom .menu { border: none; }
	.custom .menu li a { /*---[ insert "border-radius" declarations here" ]---*/ }
	.custom .menu .tab-home a { border-left: 1px solid #ddd; }
.custom .menu li ul li a { -moz-border-radius: 0em; -webkit-border-radius: 0em; }</pre><p>In this video, I show you how to make rounded tabs in the nav menu. As I explain, there are a few lines of CSS I wrote prior to recording the video in order to make the tab effect more noticeable. Here they are:</p><pre>body.custom { background: #eee; padding-top: 3em; }
.custom #header { border-left: 1px #ccc solid; border-right: 1px #ccc solid; border-top: 1px #ccc solid; }
	.custom #header #logo { text-indent: -9999px; }
	.custom #header #tagline { text-indent: -9999px; }
.custom #tabs { background: #eee; border-left: none; border-bottom: none; }
	.custom #tabs li { background: #ccc; border: none; <em>**add round corners declarations here**</em> }
.custom .current_page_item { padding-bottom: 0em; }</pre><p>Please Note: Internet Explorer does not support this technique! If you use IE, get <a
href="http://www.mozilla.com/en-US/">Firefox</a> immediately.</p> ]]></content:encoded> <wfw:commentRss>http://thesistutor.com/how-to-make-rounded-tabs-in-nav-menu/feed/</wfw:commentRss> <slash:comments>5</slash:comments> <enclosure
url="http://thesistutor.com/wp-content/uploads/2009/06/rounded_corners.mov" length="12241408" type="video/quicktime" /> </item> <item><title>How To Change Nav Bar Item Hover</title><link>http://thesistutor.com/how-to-change-nav-bar-item-hover/</link> <comments>http://thesistutor.com/how-to-change-nav-bar-item-hover/#comments</comments> <pubDate>Mon, 22 Jun 2009 18:50:52 +0000</pubDate> <dc:creator>Matt</dc:creator> <category><![CDATA[Nav Menu]]></category><guid
isPermaLink="false">http://thesistutor.com/?p=262</guid> <description><![CDATA[What is a hover? Hover is a pseudo-class of CSS. Pseudo-classes allow some selectors to have special effects. A pseudo class, in this case hover, looks like this: :hover. Notice the colon. I will explain more about CSS in later posts, so for now let&#8217;s change the hover function in your Thesis customization. By default, [...]]]></description> <content:encoded><![CDATA[<p></p><p>What is a hover? Hover is a pseudo-class of CSS. Pseudo-classes allow some selectors to have special effects. A pseudo class, in this case hover, looks like this: <code>:hover</code>. Notice the colon. I will explain more about CSS in later posts, so for now let&#8217;s change the hover function in your <a
href="http://www.shareasale.com/r.cfm?b=198392&#038;u=403159&#038;m=24570&#038;urllink=&#038;afftrack=">Thesis</a> customization.</p><p>By default, <a
href="http://www.shareasale.com/r.cfm?b=198392&#038;u=403159&#038;m=24570&#038;urllink=&#038;afftrack=" >Thesis&#8217;</a> nav item hover is an underline. I don&#8217;t personally care for underlines (only in certain contexts), but <a
href="http://pearsonified.com" >Chris Pearson</a> decided that <a
href="http://www.shareasale.com/r.cfm?b=198392&#038;u=403159&#038;m=24570&#038;urllink=&#038;afftrack=" >Thesis</a> nav items should behave like that by default. He knows his stuff. But, if you&#8217;re stubborn like me, you still want to change it.</p><p>Let&#8217;s change the hover:</p><ol><li><a
href="http://thesistutor.com/custom-css-custom-functions-php-location/">Open <code>custom.css</code></a>.</li><li>Enter the following:<pre>.custom #tabs a:hover { background: #color hex here; text-decoration: none }</pre></li></ol><p>In this very simple example, we changed the background color and took away the underline. What are other options? You could change the text color by adding <code>color: #color hex here;</code>, change the top, right, bottom or left border with <code>border-top: #color hex here 1px solid;</code> [replace top with another side name] or a whole host of other changes. One of my absolute favorites is the following:</p><pre>.custom #tabs { border-left: none; border-bottom: none; }
.custom  #tabs li { border-top: none; border-right: none; }
    .cusotm #tabs a:hover { background: #d9d9d9; margin-top: -.2em; }</pre><p>Just, uh, don&#8217;t forget the decimal or you will really piss people off.</p><p>Oh, and don&#8217;t forget to submit ALL your questions to thesistutor[at]gmail[dot]com.</p> ]]></content:encoded> <wfw:commentRss>http://thesistutor.com/how-to-change-nav-bar-item-hover/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>How To Remove The Left Border From The Nav Bar</title><link>http://thesistutor.com/how-to-remove-left-border-nav-bar/</link> <comments>http://thesistutor.com/how-to-remove-left-border-nav-bar/#comments</comments> <pubDate>Sat, 13 Jun 2009 06:18:46 +0000</pubDate> <dc:creator>Matt</dc:creator> <category><![CDATA[Nav Menu]]></category><guid
isPermaLink="false">http://thesistutor.com/?p=79</guid> <description><![CDATA[I bet you barely noticed that there is a little 1 pixel gray border on the left side of the nav bar. Well, I think that when you are customizing a site, you need to get rid of it. I know, I know. It isn&#8217;t that important. But it can really make a site look [...]]]></description> <content:encoded><![CDATA[<p></p><p>I bet you barely noticed that there is a little 1 pixel gray border on the left side of the nav bar. Well, I think that when you are customizing a site, you need to get rid of it. I know, I know. It isn&#8217;t that important. But it can really make a site look more symmetrical and crisp. And, as always in Thesis, it is incredibly easy.</p><ol><li>Read the <a
href="http://thesistutor.com/how-to-move-the-navigation-bar-in-thesis-using-hooks/">first four steps</a> from previous tutoring sessions.</li><li>Open the <em>custom.css</em> file with your favorite text editor.</li><li>At the bottom of the text, enter the following:<pre>.custom .menu { border-left: none; }</pre></li></ol><p>Yes, it is that easy to remove the border.</p><p>Remember, you need to <a
href="http://www.shareasale.com/r.cfm?b=198392&#038;u=403159&#038;m=24570&#038;urllink=&#038;afftrack=">get it, dude.</a></p> ]]></content:encoded> <wfw:commentRss>http://thesistutor.com/how-to-remove-left-border-nav-bar/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How To Move The Navigation Bar In Thesis Using Hooks</title><link>http://thesistutor.com/how-to-move-the-navigation-bar-in-thesis-using-hooks/</link> <comments>http://thesistutor.com/how-to-move-the-navigation-bar-in-thesis-using-hooks/#comments</comments> <pubDate>Fri, 12 Jun 2009 04:58:38 +0000</pubDate> <dc:creator>Matt</dc:creator> <category><![CDATA[Nav Menu]]></category><guid
isPermaLink="false">http://thesistutor.com/?p=22</guid> <description><![CDATA[Ok, ladies and gentlemen. I want to show you folks how to move around the nav menu in Thesis using hooks. First of all, I understand the initial aversion to coding. But don&#8217;t be a wuss and just try it out. Once you get going it is super easy. Second of all, every mac user [...]]]></description> <content:encoded><![CDATA[<p></p><p>Ok, ladies and gentlemen. I want to show you folks how to move around the nav menu in Thesis using hooks. First of all, I understand the initial aversion to coding. But don&#8217;t be a wuss and just try it out. Once you get going it is super easy. Second of all, every mac user who has ANY interaction with websites ought to own a copy of <a
href="http://www.panic.com/transmit/">Transmit</a> for all ftp work.</p><p>Let&#8217;s get started.</p><ol><li>Open your ftp client and click on the <em>wp-content</em> folder.</li><li>Now select the <em>themes</em> folder.</li><li>Select <a
href="http://www.shareasale.com/r.cfm?b=198392&#038;u=403159&#038;m=24570&#038;urllink=&#038;afftrack="><em>thesis_151</em></a>. If you don&#8217;t have <a
href="http://www.shareasale.com/r.cfm?b=198392&#038;u=403159&#038;m=24570&#038;urllink=&#038;afftrack=">Thesis 1.5.1</a> then <a
href="http://www.shareasale.com/r.cfm?b=198392&#038;u=403159&#038;m=24570&#038;urllink=&#038;afftrack=">get it</a>!</li><li>Select the file labeled <em>custom</em>.</li><li>Right click <em>custom_functions.php</em> and select your editor. I use <a
href="http://www.adobe.com/products/dreamweaver/?promoid=DJDSZ">Dreamweaver</a> for all CSS and PHP editing. However, you may use a simple text editor, such as <a
href="http://support.apple.com/kb/HT2523">textedit</a> for mac.</li><li>After all the words and stuff you don&#8217;t understand, space a couple lines and enter the following:<pre>remove_action('thesis_hook_before_header','thesis_nav_menu');
add_action('thesis_hook_after_header','thesis_nav_menu');</pre></li><li>Now save it and load it on your server. If you were smart, you would get a copy of <a
href="href="http://www.panic.com/transmit/">Transmit</a>. I swear that this will be worth every penny.</li></ol><p>There you have it. You just moved your nav menu from above the header to below it. Wasn&#8217;t that easy? Check back often!</p> ]]></content:encoded> <wfw:commentRss>http://thesistutor.com/how-to-move-the-navigation-bar-in-thesis-using-hooks/feed/</wfw:commentRss> <slash:comments>38</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching using disk

Served from: thesistutor.com @ 2010-09-07 16:35:52 -->