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: add_theme_support('menus') Help In Shaping WordPress Themes en Sun, 24 May 2015 19:14:31 +0000 squidz on "add_theme_support('menus')" Fri, 27 Aug 2010 22:29:34 +0000 squidz 15162@ <p>Will do!! Thanks. </p> helgatheviking on "add_theme_support('menus')" Mon, 23 Aug 2010 12:36:20 +0000 helgatheviking 14925@ <p>squidz- my code definitely pre-dated this new announcement to not use add_theme_support. your post made me curious and both your snippets of code work for me on the latest, stable thematic (709) WITHOUT add_theme_support('menus'). give it a shot. </p> squidz on "add_theme_support('menus')" Sun, 22 Aug 2010 21:05:03 +0000 squidz 14913@ <p>Chris - I'm new to Thematic and coming from designer-world. In experimenting with building a child theme for my own site, I'm interested in setting the main nav in a vertical fashion.</p> <p>I found a post that shows an easy snippet to try this. However, I've also found various links by Gene to your post here about not using add_theme_support('menus'), but calling register_nav_menu(s) instead. Another example by Helgatheviking used both. </p> <p>So, being somewhat clueless here, I'm curious what the correct way to use this code from <a href="(">Tarpontech</a> should be:</p> <p>function go_vertical( $args ) {<br /> $args[ 'menu_class' ] = 'sf-menu sf-vertical';<br /> return $args;<br /> }<br /> add_filter( 'thematic_nav_menu_args', 'go_vertical' );</p> <p>Using this in conjunction with Gene's:</p> <p>add_theme_support( 'menus' ); **** can register_nav_menu(s) directly replace this? ***</p> <p>function child_access_menu() {<br /> $menu_sys = 'wp_nav_menu';<br /> return $menu_sys;<br /> }<br /> add_filter('thematic_menu_type', 'child_access_menu'); </p> Chris on "add_theme_support('menus')" Thu, 19 Aug 2010 18:02:52 +0000 Chris 14844@ <p>Hi,</p> <p>do not use add_theme_support('menus') in your functions.php. I already removed it from the current SVN copy.</p> <p>Here's the answer from Andrew Nacin regarding the question if a theme needs this call in the functions.php:</p> <blockquote><p> This is incorrect. add_theme_support('menus') is an internal process only. *It should never be directly called.* Instead, the theme should be calling register_nav_menu(s) which will trigger add_theme_support('menus') internally.</p> <p>Likewise, add_theme_support('widgets') is internal only. The theme should only be calling register_sidebar(s). </p></blockquote> <p>Chris </p>