I've created sub-themes with Zen 5.x without issue but I'm now attempting to build a sub theme to a sub theme with Zen. I created my initial sub-theme to handle the layout. I now want to create several sub-themes to my sub-theme that will handle the styles... and maybe an occasional layout override.

Where I'm still a little confused is in my sub-sub themes, do I simply remove (or empty) the .scss files that contain layout?

Comments

caschbre’s picture

Just to clarify, here is my theme hierarchy...

Zen
-- My Zen Layout
---- My Zen Style 1
---- My Zen Style 2

I've tried the following and still wasn't getting my style sub themes to inherit the layout.
a) Removed responsive-sidebars.css from My Zen Style 1
b) Created an empty responsive-sidebars.css in My Zen Style 1

echoz’s picture

I just had to test sub-subtheme inheritance, and my result is the sub-subtheme successfully inherits all css (scss) from the parent theme.

It inherits when a stylesheet of the same name is not in the sub-subtheme. You need to keep at least one stylesheet in your sub-subtheme (named uniquely to inherit all) and listed in the sub-subtheme's .info file.

Any stylesheet of the same name as in the parent theme will override the parent's, and not inherit it's styles.

Perhaps in your case, also see that the "layouts" folder is not left there either - just a guess, and clear you cache.

caschbre’s picture

Thanks @echoz!

It was that combination of the .info and renaming / removing the sub-subtheme .css file that I wasn't catching onto.

echoz’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.