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 trialKristi Roberts
487 PointsChild Themes
I'm on Wordpress Development, Child Themes, and I'm lost. I did the easy install, and the instructor is now talking about Wordpress installed directly on my computer. I tinkered about and connected the FTP ... thingie ... to my Dreamhost account and found my sites and wordpress in there, but where would I copy the child theme? Do I have to have Wordpress installed directly on to my computer to make a child theme?
4 Answers
Vicente Vial
2,801 PointsYou can do that, just remember that it needs to be withing the themes folder inside wp-content. I suggest having a local copy of the theme tho, just in case you mess things up :).
Vicente Vial
2,801 PointsNope, you just need the files of the theme you want to edit in your computer to make it easy. In the tutorial the instructor has the whole Wordpress because he is editing one of the themes that come by default in WP.
Once you find the Theme you want to "create a child with," just create a new folder with the same with "-child" after (this is not mandatory, just a best practice). The most important thing here to do is adding the style.css file to the newly created folder, with the right "linking."
Kristi Roberts
487 PointsOk, what is the "right linking?"
Can I just copy the entire theme and call it "child" and copy that over to wordpress?
Kristi Roberts
487 PointsI'm using a default theme, too. But it's not on my computer, it's hosted on my Dreamhost account. (To be very exact, since I don't know what i'm talking about yet, it's in the right window of Filezilla, where I'm connected to Dreamhost.) So, I would create a secondary -child folder within the same place, in my hosting account?
Sarah Bradberry
7,115 PointsYes that's right.
In the directory wp-content/themes not in the directory that has the original theme in it.
You also need to append the name of the original theme to it, so for example, my main theme is called boilerplate so I've called the folder for my child theme boilerplate-child
Kristi Roberts
487 PointsOK, thank you, that clarifies things (for now). I'm going to go back and look at the local install, too.