All okay with child then “Broken theme” message.
-
Okay. Bear with me, please.
I’m using Twenty Sixteen as my, er, base theme and created a child theme but I keep finding that WordPress throws a wobbly with it and I get this message on the Manage Themes screen:
Template is missing. Standalone themes need to have a index.php template file. Child themes need to have a Template header in the style.css stylesheet.
I’ve had it a couple of times but I’m not entirely sure what’s cleared it in the past. I know I’ve deleted my child, made another default theme active, then uploaded my child again and all is well. For a bit. Then, oh, oh, WordPress deactivates my child and I’ve got the “Broken Theme” message message.
In my child folder I have: footer.php (because I messed with it to suit me); functions.php (because I messed with it to suit me) and style.css.
So the bit about styles.css in the message is a red herring.
But nothing I’ve read about Child Themes says I should have an index.php in there. Should I??
I did notice, as I poked around the themes folder on the server, that there’s an index.php in the root. Mind, it’s only three lines long, contains a commented out line and doesn’t have a closing php tag.
Have I dropped that in there inadvertently? Should there be more content to it?
I’m kinda lost, here, but figure I’ve misinterpreted or accidentally moved or deleted something along the line.
Any steers warmly appreciated because, when it works, it works. And is cool.
Ta.
- The topic ‘All okay with child then “Broken theme” message.’ is closed to new replies.