• Resolved Spencer Hill

    (@s3w47m88)


    Heya,

    I’ve recently discovered Child Themes, and while I understand them in principle, I don’t really know how applicable it is to me based on how I currently use WordPress. I’m hoping that by asking the question of when should I use a Child Theme that someone might be able to give me some insight?

    Currently my team and I design custom websites and then convert them to code. We have a pre-built theme that is based off Twenty Eleven but contains extra directories relevant to our clients (like a “psd” directory), etc…

    So far, to me it seems that if I create a child theme based on Twenty Eleven that the layout will have to remain the same, which is obviously unacceptable if I’m creating custom designed sites.

    So can anyone enlighten me a bit about how I might be able to apply usage of Child Themes into my existing workflow? Thank you!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Do you wish to make use of any new featires that might be added to Twenty Eleven? Is your custom theme a new, standalone theme?

    it seems that if I create a child theme based on Twenty Eleven that the layout will have to remain the same

    What gave you that idea?

    Thread Starter Spencer Hill

    (@s3w47m88)

    Thanks for the reply esmi.

    Yes, I rely on the Twenty Eleven theme to provide features and functions that I repeatedly use. Such as the “add_theme_support( ‘post-thumbnails’ )” and the “add_filter( ‘excerpt_length’, ‘excerpt_length’ )” functions.

    Though often times I customize functions.php by replacing all of the widget areas it creates with custom ones that are more relevant to the project at hand.

    Regarding your second question; yes my themes, historically, have always been standalone. So I literally duplicate the Twenty Eleven theme folder and customize it accordingly. So it’s truly a standalone theme, but still Twenty Eleven “under the hood”. Which is why I thought Child Themes might be an ideal solution I’ve overlooked.

    And in response to your last question; I have read a variety of posts via Google that explained only functions.php and style.css override their sibling in the parent theme. Which leads me to believe that if I wanted to customize, say, content.php I couldn’t do that. Meaning Child Themes are strictly for the purpose of styling changes. Which seems nearly useless, so I assume that’s wrong?

    Which leads me to believe that if I wanted to customize, say, content.php I couldn’t do that.

    Sorry but the articles that you are reading are totally wrong. Any template file in the child theme automatically over-rides the parent’s version. So you can create any custom template you want in the child.

    Thread Starter Spencer Hill

    (@s3w47m88)

    Very good to hear. Okay, I think this all makes sense to me now. Thanks!

    Very interesting discussion! I am having a question regarding this. I work the same way as member s3w47m88. I copy the main theme, and then amend it. I amend most files, content, content-single, content-page, functions, header, footer, I pull in additional headers etc. So I am building my own theme based on the current WP theme.

    What I don’t quite understand is this – if I replicate this as a child theme, amend most of the files, what will an update bring to my child theme if most parts are amended?

    Many thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘When should I use a Child Theme, need help…’ is closed to new replies.