Now, hit Add New File at the top of the screen.



In the next screen that appears, choose File Creation, and enter the name style.css. It's very important that this is entered correctly - don't use any other name for this file!



When you click OK you will be taken to a blank file editor. Paste the following code into it:

/*
Theme Name: Twenty Ten Child
Theme URI: http://example.com/
Description: Child theme for the Twenty Ten theme
Author: Your name here
Template: twentyten
*/

@import url("../twentyten/style.css");


You can now edit it as follows:

Theme Name: Just the name for your theme - keep it simple, put the name of the theme you're using and add a child to the end.
Theme URI: Your domain name.
Description: Make it obvious this is a child theme.
Author:Your name!
Template: This is the important bit! Remember on the previous page we noted what the folder was called that our theme was in? Enter that here. In my case it's twentyten, but for you it might be something different.

See how it says this?

@import url("../twentyten/style.css");

You also need to change the middle bit (it says twentyten for me) to the folder of your main theme - basically the same as the template bit above.

This is important because it tells Wordpress that the other theme is still the "main" one.


Click OK.

It's pretty messy working in the File Manager so we'll get out of it soon, I promise. There's just one more thing to do, and that's to make our new file writable from within Wordpress.

Click on the "permission" to the right of the file (circled).





Now just click the check boxes so they match the image below (the boxes with arrows refer to the ones that will be by default unchecked).


Hit OK and we're ready to rock and roll.

You can now close the File Manager, we no longer need it!



Join the Discussion
Write something…
Recent messages
firstburn Premium
can u create a forumn page in your wordpress site
Reply
mhamilt Premium
Yes, although it gets a bit tricky. I'm not sure why you'd want to, the comments section on blogs is usually sufficient for user interaction. This plugin may help: http://wordpress.org/extend/plugins/mingle-forum/
Reply
firstburn Premium
i have a blogg i left 4 yrs called breaststrokeforbegginers.wordpress.com because i could not put and adsense code to it. i think with this tutorial i might start using wordpress again.
Reply
Kyle Premium Plus
Wordpress is definitely a wonderful platform...it is not perfect, but it is has come a long way and it sure beats the old days of building websites from scratch!!
Reply
mhamilt Premium
Yeah, I tried Wordpress even just three years ago and hated it. Now I couldn't imagine using anything else! And it gets better on a very regular basis.
Reply
Denisara Premium
firstborn - you could not put adsense codes into breaststrokeforbegginers.wordpress.com because you were using the free wordpress version (yoursite.wordpress.com). If you owned your site it would be yoursite.com. You can't monetize a free wordpress, or blogger etc. You have to 'own' your site to be able to do that.
Reply
Kyle Premium Plus
Excellent training Mark...this is going to be valuable for many!
Reply
BIS Premium
Very useful tutorial which is very easy to follow.

Thanks

Beverley
Reply
mhamilt Premium
Thanks Beverley!
Reply
SquidooSlfMstr Premium
Well written tutorial, Mark! Do you know if you do your site customization on the parent theme, do you lose all that when the theme owner makes updates? Is this why you would want a child theme?

Thanks again for doing this tutorial.

Charlie
Reply
mhamilt Premium
Yes, this is one of the reasons why child themes are good - you do lose any changes made if the theme you're using is updated.
Reply
Top