In the latest (0.9.7.6) version of Thematic - How do I override the arguments for thematic_page_menu_args in my child theme? Basically, I want to take this out of the header-extensions.php file:
// Create the default arguments for wp_page_menu()
function thematic_page_menu_args() {
$args = array (
'sort_column' => 'menu_order',
'menu_class' => 'menu',
'include' => '',
'exclude' => '',
'echo' => FALSE,
'show_home' => FALSE,
'link_before' => '',
'link_after' => ''
);
return $args;
}
add_filter('wp_page_menu_args','thematic_page_menu_args');
and change it to this:
// Create the default arguments for wp_page_menu()
function thematic_page_menu_args() {
$args = array (
'sort_column' => 'menu_order',
'menu_class' => 'menu',
'include' => '',
'exclude' => '3,2,411,408,371,9,398,4,276,14,270,272,212,5,246,450',
'echo' => FALSE,
'show_home' => FALSE,
'link_before' => '<span></span>',
'link_after' => ''
);
return $args;
}
add_filter('wp_page_menu_args','thematic_page_menu_args');
I've tried doing this in my child-theme's functions file:
function childtheme_menu_args($args) {
$args = array(
'exclude' => '3,2,411,408,371,9,398,4,276,14,270,272,212,5,246,450',
'link_before' => '<span></span>',
);
return $args;
}
add_filter('wp_page_menu_args','childtheme_menu_args');
and changing my wp_page_menu call to the new echo as described here: http://developing.thematic4you.com/2010/04/breaking-things-to-fix-others/
...but no joy. What am I doing wrong?