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 trialJaime Rios
Courses Plus Student 21,100 PointsAbout 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
Courses Plus Student 21,100 PointsOk, 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"
Ryan Duchene
Courses Plus Student 46,022 PointsTry redoing it from scratch:
- Create an empty folder inside of the
wp-content/themes
folder and name ittwentyfourteen-child
. - Create two blank files inside
twentyfourteen-child
,functions.php
andstyle.css
. - 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
Courses Plus Student 21,100 PointsAnyway, thanks for your interest in helping me
Jaime Rios
Courses Plus Student 21,100 PointsStill not working :/ Should I contact my hosting provider?
Ryan Duchene
Courses Plus Student 46,022 PointsIn 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
Courses Plus Student 21,100 PointsI'm working using my dad's company internet connection, could that be an issue?
Jaime Rios
Courses Plus Student 21,100 PointsStill not :(
Floyd Orr
11,723 Pointssometimes 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
Courses Plus Student 21,100 PointsStill not working, should I try using a plugin instead?
Jaime Rios
Courses Plus Student 21,100 PointsSo 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.
Jaime Rios
Courses Plus Student 21,100 PointsI am running version 4.3
Robert Ziętara
168 PointsI 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.