Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
caschbre CreditAttribution: caschbre commentedJust 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
Comment #2
echoz CreditAttribution: echoz commentedI 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.
Comment #3
caschbre CreditAttribution: caschbre commentedThanks @echoz!
It was that combination of the .info and renaming / removing the sub-subtheme .css file that I wasn't catching onto.
Comment #4
echoz CreditAttribution: echoz commented