4

A sub theme relies on its parent. Does that mean I always have to activate both of them?

2
  • I recently created a child theme of Radix but got a WSOD. The dblog revealed that Radix wasn't enabled, so there must be some functionality that fails when it's disabled, although Drupal is able to detect the need for such functionality even though I hadn't made any code changes to the child theme at this point, so although the accepted answer is "No", I'm guessing it depends on the parent theme's behavior.
    – Jav
    Dec 7 '20 at 18:25
  • Are you on D7 as well?
    – leymannx
    Dec 7 '20 at 19:43
6

No it doesn't. As long as the base theme is present, that's OK.

As an example, if you test the Sky theme on Simplytest.me and go to the admin/appearance page, you'll see that Sky is enabled, but the base theme (AdaptiveTheme) is not.

2
  • 4
    Keeping in mind that if you don't have the base theme enabled you will not receive notification updates if there are any for it. Sep 19 '13 at 16:18
  • @NigelWaters This is a very good point! Thanks for that, I'd never even thought about that before hangs head in shame
    – Chapabu
    Sep 20 '13 at 7:57
1

In Drupal 8, the base theme is automatically enabled.

https://www.drupal.org/node/2232651

When a sub-theme is installed, then its base theme(s) are installed, too.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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