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 trial

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

Missing index.php file theme broken

Need to add index.php file to the tutorial

5 Answers

Andrew McCormick
Andrew McCormick
17,730 Points

your template line should be the name of your parent theme. It probably should read (unless your making a child of a child) /* Theme Name: Twenty Twelve Child Template: twentytwelve */ @import url("../twentytwelve/style.css");

Andrew McCormick
Andrew McCormick
17,730 Points

you don't need am index.php to make a child theme. Only style.css

Sorry I was mistaken. This is the first time I have tried to setup a child theme in 3.8.1 and it is giving me errors.

prior all I would have to do is create the directory and a basic style.css and all was good.

For some reason when I activate the new child theme it does not stay activated.

Here is my style.css

/* Theme Name:Twenty Twelve Child Template:twentytwelve-child */

@import url("../twentytwelve/style.css");

It reverts back to twenty fourteen

I spaced it, thank you.