• Hi guys. New to WP.

    I understand the child theme reasoning to prevent acidental screwing up on original code + upgrade advantages.

    So happy creating a child theme and adding additional or edited entries into the css or php files which will take precendence over the parent theme that it calls.

    however a couple of questions.

    1. what if i wanted to remove something from the theme. eg i wanted to remove the search box in the header. now the rule is to make tweaks in the child not original parent…..but because i want to remove the code, theres nothing to put in the header file in the child theme. but as the parent theme contains the code to show the searchbox, when it is called by the child it will simply bring the search box code with it and it’ll be displayed.
    So i presume when it comes to deletions i have no choice but to delete from the parent itself ?

    2. I’m running the 2011 theme. i’ll have a child theme so any updates to 2011 don’t overwrite my changes after a 2011 update.

    now i appreciate that depending on the info contained in my child, that moving to a totally new theme is possibly not going to be compatible with all the changes you have in a child.( eg simple formatting in the css would nodoubt be fine )

    So obviously its not a case of being able to take your child and rename to use in ANY theme and hope its always going to work 100%.

    however these standard WP inhouse themes eg 2010, 2011, 2012.. ( I presuming all similar in coding practices and done by same team )

    Would i be correct in thinking that for example if i moved from 2011 to 2012 , that i could just edit the name of the parent in the 2011 child to the 2012 theme name and theres a good chance 99% of all the childs contents would be compatible with the 2012 theme.. Is that a fair assumption ?

    thanks for any feedback

Viewing 1 replies (of 1 total)
  • Copy header.php into your child theme and make the changes there — unlike style.css and functions.php, WP uses child templates instead of the parent copy rather than in addition to them. Don’t hack the parent copy.

    As for Twenty Eleven and Twenty Twelve, they’re completely different themes, and there’s no guarantee that child theme changes will carry over.

Viewing 1 replies (of 1 total)
  • The topic ‘Child theme – deletions rather than additions.’ is closed to new replies.