ADDED:
- New filter thematic_page_menu_args to filter the arguments for wp_page_menu().
FIXED:
- The UL Class sf-menu will be created only for the wp_page_menu() in the header.
Thematic Revision 652
This entry was posted in Added, Fixed and tagged Added, Filter, Fixed, wp_page_menu(). Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.
3 Comments
@Chris: Sorry to be a pain. I’ve just loaded r652 (I think?) to the test install, but for some reason, the UL class for
sf-menuisn’t loading up for me, so it’s just a plainTest site: http://thematic.wpsnippets.com/
Do you use wp_page_menu() or wp_nav_menu()?
@Chris: Thanks for the reply.
Apologies. I can see where my error is now: I added a ‘Home’ link to the menu by taking out the ‘comments //” from the sample child theme functions.php so this was used.
function childtheme_menu_args($args) {$args = array(
'show_home' => 'Home',
'sort_column' => 'menu_order',
'menu_class' => 'menu',
'echo' => true
);
return $args;
}
add_filter('wp_page_menu_args','childtheme_menu_args');
Once I take it out, the menu works just fine.