Thematic Revision 653

ADDED some experimental code. A child theme running under WordPress 3.0 will use wp_page_menu() by default.

To switch the menu to wp_nav_menu() use the following PHP snippet in your child theme’s functions.php:

function change_menu_type() {
	return 'wp_nav_menu';
}
add_filter('thematic_menu_type', 'change_menu_type');
This entry was posted in Experimental and tagged , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

2 Comments

  1. Posted May 19, 2010 at 01:54 | Permalink

    If i use this code all calls to wp_page_menu() will be replaced by calls to wp_nav_menu or do i have to remove the calls to wp_page_menu() in the child theme?

  2. Posted May 19, 2010 at 03:03 | Permalink

    Regarding my last comment i figured out that thematic replaces one menu with the other, but i was also having a problem with the wp_nav_menu not been shown in the earlymorning child theme inside the branding div. I fixed it by changing the add_action priority argument from a 9 to a 6 at line 455 of the header-extension.php file, now it works as it should.

    Hope this info is helpfull.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>