I am about to create my first ever WordPress theme, based on the excellent tips provided in this answer.

Initially, all I want to do is to modify the CSS only, changing nothing in the .php or other files.

A straightforward approach is to simply ZIP the entire directory structure of wp-content/themes/twentyeleven, rename it, modify the CSS files only, then upload the entire thing as a new theme.

It should work, but it looks to me as very wasteful, since I am essentially duplicating all theme files for a handful of .css files.

Is there a better way to create a theme that is based on an existing theme (e.g. twentyeleven)?

link|improve this question
feedback

1 Answer

up vote 2 down vote accepted

Great question. You should create a child theme - this allows you to modify only the parts of the parent theme you need to and avoids conflicts when upgrading the theme further down the line (if you're using 2011, watch your dashboard for update notifications).

I would also reccommend you take a look at theme frameworks before you begin.

link|improve this answer
1  
Thank you. I knew the great WP team would have something so elegant in place. I just tried it, but the admin panel doesn't seem to "see" that I created a new theme directory with that single style.css file in it. What am I doing wrong? – ef2011 Jan 31 at 21:20
My problem seems very similar to this one. Continuing to research.... – ef2011 Jan 31 at 21:29
1  
Have you named them the same? – toomanyairmiles Jan 31 at 22:12
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.