ThemeShaper Forums » Thematic


Can you tell me if I am correct doing this this way

(4 posts)
  • Started 3 years ago by nellyshark
  • Latest reply from nellyshark
  • This topic is not resolved
  1. nellyshark

    Hi Guys,

    This board is so helpful, when one of my questions has been answered I have found that it happens to solve a range of my other questions.

    My next question is this:

    I have a child theme whereby I do not want #header in its entiretly. For this what I did was copy the relevant header.php over to my child theme and remove the relevant code.

    Now, what I would like to know is whether this is achievable via functions.php. I know how to remove thematic_blogtitle and thematic_blogdescription but when I do this it still leaves an empty div on my design.

    I guess my question is, which is the correct way of doing things:
    A -Copy relevant file to child theme and remove relevant code
    B -Use functions.php file

    If its B above, how do I go about such?

    Posted 3 years ago #
  2. you want to completely get rid of the #header div? you could always display:none on the empty div if it is giving you problems.

    the header div is opened and closed in header.php and there isn't any way i am aware of of getting to it strictly through functions. so you would have to copy header.php into your child theme and then remove those parts.

    Posted 3 years ago #
  3. Vasudeva Adiga

    You could do the following in your child theme's functions.php to get an empty header div.

    function remove_child_header()
    add_action('after_setup_theme', 'remove_child_header');

    Edit: Sorry, didn't notice that you already said you don't want empty header div. There's no option but to override header.php then.

    Posted 3 years ago #
  4. nellyshark

    @helgatheviking: Yes I am looking to remove #header completely? Im mainly doing this to tear apart Thematic and see what I can do with it.

    @Vasudeva Adiga: Thanks, I have never used 'after_setup_theme' before, what does that do?

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.