2011-04-27, 11:11 PM
Hi,
I've been looking, without success, for a way to inherit most of my stylesheet settings and/or template settings from a parent theme in a nice manner. What I want is basicly to have two very similar themes where one would be set as default and another one set as active within a certain category. The main thing I would change here would be a few images, some colors etc.
Preferably I'd have liked for the parent theme's stylesheet to be parsed first, with the child themes stylesheet coming after, overwriting the relevant style settings.
E.g. if I want to change the background in body {}:
body{} in parent theme is set to url('images/parenttheme/background.png'); while in the child theme it is set to url('images/childtheme/background.png');
The other properties of body aren't mentioned in the child theme's stylesheet as they shouldn't differ from the parent settings. When I edit a stylesheet now, it simply stops reading the parent stylesheet altogether and wants me to copy its code instead.
Is there a nice way to achieve this?
I've been looking, without success, for a way to inherit most of my stylesheet settings and/or template settings from a parent theme in a nice manner. What I want is basicly to have two very similar themes where one would be set as default and another one set as active within a certain category. The main thing I would change here would be a few images, some colors etc.
Preferably I'd have liked for the parent theme's stylesheet to be parsed first, with the child themes stylesheet coming after, overwriting the relevant style settings.
E.g. if I want to change the background in body {}:
body{} in parent theme is set to url('images/parenttheme/background.png'); while in the child theme it is set to url('images/childtheme/background.png');
The other properties of body aren't mentioned in the child theme's stylesheet as they shouldn't differ from the parent settings. When I edit a stylesheet now, it simply stops reading the parent stylesheet altogether and wants me to copy its code instead.
Is there a nice way to achieve this?