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

Sophie Masters
Sophie Masters
78 Points

My childthem shows up in my back-office under 'Broken Themes' and says the template is missing. How do I repair this?

please assist;)

Sophie Masters
Sophie Masters
78 Points

I am using theme Twenty Fourteen

Gabor Meszoly
Gabor Meszoly
212 Points

show me your first 10-12 line from the "childtheme/style.css"

Sophie Masters
Sophie Masters
78 Points

Thanks Gabor Meszoly, here is a copy of my first 10-12 lines /* Theme Name: Twenty Fourteen Child Theme URI: http://veluwevakantiehuisje.com/twenty-fourteen-child/ Description: Twenty Fourteen Child Theme Author: Sandra Betel Author URI: http://example.com Template: twentyfourteen Version: 1.0.0 Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready Text Domain: twenty-fourteen-child */

3 Answers

Hi Sophie,

There could be a few things causing this but first can you check that your child theme style sheet is named style.css (no 's' on the end).

If this is already correct can you check that your contains the Meta info please?

These steps for creating a child theme in the WP Codex should help narrow down the issue and also contain an example of the required Meta info.

Thanks

-Rich

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

You might need to include an index.php file as well

Gabor Meszoly
Gabor Meszoly
212 Points

Hello Sophie, Please check 3 things:

1. Child theme folder name

The correct name is: twentyfourteenchildtheme

2. style.css content
/*
Theme Name: Twenty Fourteen Child Theme  
Theme URI: http://veluwevakantiehuisje.com/twenty-fourteen-child/  
Author: Sandra Betel Author  
Description: Twenty Fourteen Child theme  
Template: twentyfourteen  
Version: 1.0.0  
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready  
Text Domain: twentyfourteenchild  
*/

/* Your own css goes here */

.body {
    font-size: 18px;
}
3. functions.php content
<?php

// Using a Hook from the parent theme style
add_action( 'wp_enqueue_scripts', 'enqueue_parent_theme_style' );
function enqueue_parent_theme_style() {
    wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
}

?>