Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialNathan Bolerjack
2,007 PointsChild Theme results in "broken theme"
When I try to make a child theme folder inside my wordpress themes folder - the only result is that my parent theme appears "broken" to wordpress. What am I doing wrong?
1 Answer
Rich Bagley
25,869 PointsHi Nathan,
Do you receive a more specific error in the Appearance section of your admin? For example, does it say that your stylesheet is missing?
If not, a couple of things to check would be that you have a style.css and a functions.php. The style.css will need to contain a specific section at the top as Tyler mentions.
Here's the info for How to Create a Child Theme from the WordPress Codex. Replace any references to Twenty Fifteen or Twenty Fifteen Child with your parent / child themes and you should be sorted.
Hope that helps :)
-Rich
Tyler _
6,651 PointsTyler _
6,651 Pointsmake sure you aren't putting the child theme folder inside the parent folder.
Also, make sure your CSS file in Child reads something like this:
/* Theme Name: TwentyFifteen Child Theme Description: A demo child theme for the default TwentyFifteen theme Author: zgordon Template: twentyfifteen
(optional values you can add: Theme URI, Author URI, Version, License, License URI, Tags, Text Domain) */