Hi
I am learning how to use thematic to make a theme. I must say, so far its great! However, I have got a little stuck.
I want to edit the list of args that is sent for the menu
In header-extensions.php I find
function thematic_page_menu_args() {
$args = array (
'sort_column' => 'menu_order',
etc...........
'link_after' => ''
);
return $args;
}
add_filter('wp_page_menu_args','thematic_page_menu_args');
In my theme I have a functions.php. I want to avoid editing the thematic stuff if I can avoid it so I thought
do something like this:
function maxelcat_page_menu_args(){
$args = array (
'sort_column' => 'menu_order',
'menu_class' => 'menu',
...
'link_after' => ''
);
return $args;
}
remove_filter('wp_page_menu_args','thematic_page_menu_args');
add_filter ('wp_page_menu_args','maxelcat_page_menu_args');
The plan being to remove the thematic version of the filter and add my own. However, this doesn't work.
If I comment out the add_filter('wp_page_menu_args','thematic_page_menu_args'); then it does work, but as I said I don't want to mess with the thematic framework if I can avoid it.
What am I doing wrong please
Many thanks