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

hi, i couldnt pass the style.css well to my new child template. from where i need to copy it? thanx:)

i wasnt sure from where to copy the file style.css. i tried from the thirteen template that was already exist in my download directory, so the sample that you display wasnt the same of mine.

You can simply create a new file in your child theme directory called style.css

Now open that file and place the following code at the very top of the file. Please insert your needed values according to the used parent theme:

/*
Theme Name: Your desired theme name for this child theme
Theme URI: Your corresponding URL for more infor on this child theme
Author: Your name if you like
Author URI: Your Website-URL if you like
Description: Describe your child theme.
Version: For example something like 1.0 or 0.1
Template: The directory name of the parent theme goes here, for example twenty-fifteen
License: f. e. GNU General Public License v3 or later
License URI: f. e. http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: The text-domain used within the child theme. OR refer to the parent text-domain
Tags: any tags describing the properties of this child theme.. f. e. flat, responsive, clean design, etc.

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/


/* Add your custom  css below */

Hope this helped.

Saskia

3 Answers

Hi Tamar,

You only need to create style.css for your child theme but don't need to copy one from the parent theme.

This information from the Codex contains examples (3rd code block under the How to Create a Child Theme heading specifically).

Hope that helps :)

-Rich

thanx!! it helped:)

No problem :)

-Rich

See my comment, pls. Sorry for adding a comment instead of an answer. I am new to this forum ;)

thank u very much Saskia. ill try it! :)