ThemeShaper Forums » Thematic

How to remove the menu via child theme?

(5 posts)
  • Started 2 years ago by Oskar Rough
  • Latest reply from nathanrice
  • This topic is not resolved
  1. Oskar Rough
    Member

    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.

    Posted 2 years ago #
  2. @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;

    Posted 2 years ago #
  3. 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);
    }
    Posted 2 years ago #
  4. tolmarc
    Member

    Why can't you just remove the function directly? why this should be done via a function? appreciate the explanation for this.

    Posted 2 years ago #
  5. 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.

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.