Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
I think I’ve figured out that part, but I’m wondering if there’s a way to copy everything from Twenty Eleven into the child theme so I have full editing capabilities of every aspect of the theme.
http://codex.wordpress.org/Child_Themes
You’re on the right track but don’t have to copy everything just copy what you want to modify.
Create an empty directory wp-content/themes/twentyeleven-child
and put this simple style.css
file. Nothing else, just this file.
/*
Theme Name: Twenty Eleven Child Theme
Author: Self-Help WordPress User
Template: twentyeleven
*/
@import url("../twentyeleven/style.css");
Now go to your dashboard and activate the Twenty Eleven Child Theme
.
Visit http://your-wordpress-url/wp-admin/theme-editor.php
and you can edit the style.css
there.
Use FTP or your host provided file management tools to then copy only the files you want to modify.
If you do want to modify everything (and that’s cool too) then don’t use a child theme.
Make that full copy into a new directory such as wp-content/themes/my-twentyeleven
and modify the copy’s style.css
.
Change the Theme Name: Twenty Eleven
to Theme Name: My Twenty Eleven
, activate that new then and you’ll be all set.
Thanks Jan. When I try to do this, my site doesn’t work. I have a file that contains all of the files (.css
and .php
) for Twenty Eleven, and I’ve modified the style.css
file to reflect the fact that this is a new theme, etc. I compress it all into a .zip
and upload it as a new theme on my dashboard, but then I get an error page when I try to go to my site, saying that it may be configured incorrectly (which is likely true).
A tangential (and probably very very basic) question is that when I upload files to my host’s directory (I’m using Bluehost) what do I do with them after that? I tried the approach of making a new child theme directory and got everything onto my host website, but then how to I get them to show up on my WordPress site?
I’m sure that these are very easy to someone who is WordPress- and web-savvy, but this is all so totally new to me and I have no clue what I’m doing. Hopefully it’ll get easier from here!
You can download an example child theme of twenty eleven here:
http://www.huurautohuren.com/twenty-eleven-child-theme-free-download/
It is very basic, but it adds a sidebar to single posts and also 4 widget area’s to the header. Maybe you can use this as a base, and modify the code some more to your needs?