In header-extensions.php we have a
add_action('thematic_header','thematic_access',9); line that adds the menu. However, say I wanted that removed. What should I do in the functions.php in my child theme?
Thanks a lot.
In header-extensions.php we have a
add_action('thematic_header','thematic_access',9); line that adds the menu. However, say I wanted that removed. What should I do in the functions.php in my child theme?
Thanks a lot.
@Oskar Rough... re "How to remove the menu via child theme?"...
You can remove(hide) the menu via your child theme using the CSS command... display:none;
in the child theme functions.php file, do this (changing the details as you see necessary):
add_action('init', 'remove_stuff');
function remove_stuff() {
remove_action('thematic_header','thematic_access',9);
}Why can't you just remove the function directly? why this should be done via a function? appreciate the explanation for this.
It's all about the execution sequence.
I'm not exactly sure how Thematic does it's function execution sequence, so adding the action remove directly might work. Try it and see. But if it doesn't, using the code I gave you above should work.
You must log in to post.