Should child theme use templates or functions.php?
-
I have a TwentyEleven child theme activated, and I’m in early stages of building a static-page website. https://www.betsysharp.com
I made a copy of the page.php template and put that in my child directory, and I successfully removed from it the command that makes comments show up on the page. All good so far. I also put a copy of the page.php template in there, though I haven’t done anything to it yet.But then while reading the Codex, it seems like I should put a copy of the functions.php file in my child directory, in order to continue with other design changes. The moment I do that, the whole site just blanks out. Just a white screen. This lasts until I go to my webhost file manager and remove the functions.php file from the child directory. Once it’s removed, my site is working again.
So, is it the case that if I have the functions.php file in my child directory, I can’t have other templates? Is it an either/or thing? I don’t understand.
Thanks for any help.
- The topic ‘Should child theme use templates or functions.php?’ is closed to new replies.