Strict Standards: Redefining already defined constructor for class bbdb in /home/themes/public_html/forums/bb-includes/db-mysql.php on line 12

Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Warning: Cannot modify header information - headers already sent by (output started at /home/themes/public_html/forums/bb-includes/db-mysql.php:12) in /home/themes/public_html/forums/my-templates/kakumei-variant/rss2.php on line 1
ThemeShaper Forums Topic: WordPress 3.0 and the upcoming Thematic release Help In Shaping WordPress Themes en Sun, 24 May 2015 13:05:37 +0000 carlos007h on "WordPress 3.0 and the upcoming Thematic release" Fri, 20 Aug 2010 16:28:20 +0000 carlos007h 14878@ <p>Works great, I updated the thematicclassic, just fine, thanks a lot Chris </p> Chris on "WordPress 3.0 and the upcoming Thematic release" Sun, 20 Jun 2010 18:32:57 +0000 Chris 13252@ <p>Hi Theo,</p> <p>yes and no :)</p> <p>If you design a child theme for yourself, you don't need to use register_nav_menu(). You know where the child theme calls which menu and what you have to create in the backend.</p> <p>If you create a child theme for the masses you have to use register_nav_menu(). This function creates a 'location'. This would be something like register_nav_menu( 'main-menu', __( 'Main Menu' ) ). A location called 'Main Menu' is created in the backend. You still need to define as described above, where this menu is located. Now the user can create a menu and select it for this one location.</p> <p>Creating specific menus that are based on conditional tags is possible too:</p> <pre><code>register_nav_menu( &#39;main-menu-home&#39;, __( &#39;Main Menu - Home&#39; ) ); register_nav_menu( &#39;main-menu-page&#39;, __( &#39;Main Menu - Page&#39; ) ); register_nav_menu( &#39;main-menu-post&#39;, __( &#39;Main Menu - Post&#39; ) );</code></pre> <p>Yes .. this can be done with one call and an array ;)</p> <p>Now the code for switching the menus:</p> <pre><code>function switch_menu( $args ) { if (is_single()) { $args[ &#39;menu&#39; ] = &#39;main-menu-post&#39;; } elseif (is_page()) { $args[ &#39;menu&#39; ] = &#39;main-menu-page&#39;; } else { // Using this as a fallback for everything else $args[ &#39;menu&#39; ] = &#39;main-menu-home&#39;; } return $args; } add_filter( &#39;thematic_nav_menu_args&#39;, &#39;switch_menu&#39; );</code></pre> <p>Let me know, if you need more help.</p> <p>Chris </p> theorib on "WordPress 3.0 and the upcoming Thematic release" Sat, 19 Jun 2010 16:43:20 +0000 theorib 13240@ <p>Hey Chris, thanks for all the hardwork!</p> <p>How exactly do we use the second sample code above? Would you be so kind as to fire an example for us?<br /> Should we still use the <code>register_nav_menu()</code> function in our child themes?</p> <p>I took a look at the changelog for the new version and was curious on how do we use the override functions as well :)</p> <p>Thanks loads man, you and Gene are great! </p> Chris on "WordPress 3.0 and the upcoming Thematic release" Fri, 18 Jun 2010 19:20:09 +0000 Chris 13224@ <p>Hi,</p> <p>currently Gene and I are testing the upcoming Thematic release against WordPress 3.0.</p> <p>If you can't wait please read this post first: <a href="" rel="nofollow"></a></p> <p>If you still can't wait, you can grab the latest SVN copy from: <a href="" rel="nofollow"></a></p> <p>Or download something that is considered a stable development release running on all of my blogs: <a href="" rel="nofollow"></a></p> <p>Thematic won't use wp_nav_menu() out of the box, because I don't want to break any child theme.</p> <p>If you created only one wp_nav_menu or the one that you're going to use as the primary menu is the first one you created, just add the following code to your child theme's functions.php:</p> <pre><code>function change_menu_type() { return &#39;wp_nav_menu&#39;; } add_filter( &#39;thematic_menu_type&#39;, &#39;change_menu_type&#39; );</code></pre> <p>If you have more than one menu or you want to use the second or third one in the list, you need to add some additional code to your child theme's functions.php:</p> <pre><code>function switch_menu( $args ) { $args[ &#39;menu&#39; ] = &#39;test-menu&#39;; return $args; } add_filter( &#39;thematic_nav_menu_args&#39;, &#39;switch_menu&#39; );</code></pre> <p>This code can be extended with conditional tags to load specific menus for a certain template, page, post, and so on.</p> <p>Chris </p>