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

Child 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

You 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 :).

Nope, 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."

Ok, what is the "right linking?"

Can I just copy the entire theme and call it "child" and copy that over to wordpress?

I'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
Sarah Bradberry
7,115 Points

Yes 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

OK, thank you, that clarifies things (for now). I'm going to go back and look at the local install, too.