Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

WordPress How to Make a Website with WordPress Customizing WordPress Themes How to Make Child Themes

Nathan Bolerjack
Nathan Bolerjack
2,007 Points

Child 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?

Tyler _
Tyler _
6,651 Points

make 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) */

1 Answer

Hi 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