0

I'm trying to learn how to use the Drupal Bootstrap theme to create my own subtheme. I've added the Bootstrap theme to my drupal/themes directory, and chosen SASS as my sub-theme starterkit (i.e. I've copied drupal/themes/bootstrap/starterkits/sass to drupal/themes/mynewtheme).

I understand the concept of how sub-themes work: the sub-theme inherits the parent theme's resources. But I don't understand how it works in the case of the Drupal Bootstrap theme. Once I install the bootstrap framework into my sub-theme (per the instructions on the Drupal Bootstrap sub-theming instructions page), what resources is the sub-theme inheriting from the main theme?

0

I do not why, but bootstrap sub-theme requires bootstrap theme also enableled in order to inherit all settings, in D7 theme and sub-theme must be to be in sites/all/themes folder, D8 theme and sub-theme in /themes folder, just do it and all will work fine.

0

Why do I need to enable the Drupal Bootstrap theme when using a Bootstrap subtheme?

You don't. You simply have to define in your subtheme that you're making Drupal Bootstrap your parent theme.

what resources is the sub-theme inheriting from the main theme?

The templates and anything tethered to it.

Templates that you don't override on your subtheme gets delegated to the parent theme, in this case, the Bootstrap theme. Anything that the Bootstrap theme doesn't override gets delegated to the core themes. If I remember correctly, the Bootstrap theme overrides a lot of the templates. If you turn on template debugging, you'll see the hierarchy of the template suggestions.

Since the templates also define additional things like favicons, extra CSS, HTML boilerplates, and that stuff (html and page templates especially), if you don't override them on your subtheme, you get Bootstrap's which loads whatever is in there.

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.