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

Jaime Rios
PLUS
Jaime Rios
Courses Plus Student 21,100 Points

About creating child themes.

Checking the wordpress documentation I find that in order to create a child theme I need a .css file, a child theme directory and a functions.php.

I tried doing what the video says, then also coping the functions.php from the theme to the child theme folder and still it doesn't shows up on the themes available. Do you have any other resources?

6 Answers

Jaime Rios
PLUS
Jaime Rios
Courses Plus Student 21,100 Points

Ok, so now I figured it out. When I created the subdomain it was supposed to go to /blog folder in the server and there I uploaded the five minute installation files. But when I applied the 1 click installation that my hosting company provides they installed wordpress in the same subdomain but the server would run it at a different directory within the itself so the site is running in "/somewhereelse/yourWPsite"

Try redoing it from scratch:

  1. Create an empty folder inside of the wp-content/themes folder and name it twentyfourteen-child.
  2. Create two blank files inside twentyfourteen-child, functions.php and style.css.
  3. Inside of style.css, copy and paste the following code:
/*
 Theme Name:   Twenty Fourteen Child
 Description:  Twenty Fourteen Child theme
 Template:     twentyfourteen
 Version:      1.0.0
*/

In that snippet, the Template part is what tells WordPress that this is a child theme. Otherwise, WordPress will think that it's a parent theme, and parent themes require at least one other file in order to work (index.php).

If that still doesn't work, reply back here and I'll help you some more.

Jaime Rios
Jaime Rios
Courses Plus Student 21,100 Points

Anyway, thanks for your interest in helping me

Jaime Rios
PLUS
Jaime Rios
Courses Plus Student 21,100 Points

Still not working :/ Should I contact my hosting provider?

In your WordPress Admin area, make sure you're in Appearance > Themes, then scroll down to the bottom. Does it say anything about themes that could not be loaded?

Jaime Rios
Jaime Rios
Courses Plus Student 21,100 Points

I'm working using my dad's company internet connection, could that be an issue?

Floyd Orr
Floyd Orr
11,723 Points

sometimes you can have a file that ends in .css but if you save it it notepad it will be read as a text file. Hover over it and see if it says cascading style sheet. If not then it is saving as a text file.If it keeps saving it as a text file download and open up notepad++ or some other free of text editor like brackets and then choose cascading sylesheet when you save it.

Jaime Rios
Jaime Rios
Courses Plus Student 21,100 Points

Still not working, should I try using a plugin instead?

Jaime Rios
PLUS
Jaime Rios
Courses Plus Student 21,100 Points

So I have been trying different approaches and the only thing that seems to work is using a child theme plugin creator. Seen the folder it looks like any other theme. With the several folders and files in php.

I had the same problem. Check your theme files and folder permission. My files didn't have enough permission to be manage by Wordpress. You should to compare it with other theme folders.