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

Dejan Buric
Dejan Buric
12,560 Points

How to make a child theme on my localhost?

Can somebody tell me, how can i make "twentythirteen" child theme on my localhost.

Thanks.

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,252 Points

I'm just about to dip into Wordpress Theme Development myself so I'm sure someone else will be able to give you a more reasoned answer but it should be a case of downloading Wordpress to your localhost area and going into the files. Just as you would put Wordpress in the root folder of your web host. :-)

3 Answers

Stanley Thijssen
Stanley Thijssen
22,831 Points

Just install wordpress on your localhost and create a child folder inside the template folder of your Wordpress install. It works the same on any other environment Wordpress is installed. Just follow the proces of creating a child theme, it shouldn't really matter whether ur on a localhost or on webhost.

What local server are you using (if one)?

It all starts with going to your sites theme directory, creating a folder called twentyfifteen-child and creating a style.css with the following in it:

/*
 Theme Name:   Twenty Fifteen Child
 Theme URI:    http://example.com/twenty-fifteen-child/
 Description:  Twenty Fifteen Child Theme
 Author:       John Doe
 Author URI:   http://example.com
 Template:     twentyfifteen
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  twenty-fifteen-child
*/
Dejan Buric
Dejan Buric
12,560 Points

Im using XAMPP. What should i set for Theme URI and Author URI?

Theme URI typically goes to a page where the theme is stored/soldfrom/etc and the Author uri is generally a link to the authors website. If you go to the themes page on WordPress you'll notice that you can click on the author of a theme and it will take your somewhere.

Don't worry if you don't have anything for either, you can always just link both to your GitHub too.