Contents
How do I create a sub-theme in Drupal 7?
File my_subtheme.info Then you need to add the following line to my_subtheme.info file to declare its parent or “base theme.”: change ” theme_name ” to the internal name of the parent theme (that is, the name of the parent theme’s . info file, usually all lower case). and then copy the colors.
What is the sub-theme of the story?
: a theme that is secondary to a larger theme … these three different bodies of work are also bound together by the entwined themes of migration, globalism, and—unexpectedly—portraiture.
What is sub-theme in Drupal?
Sub-themes are just like any other theme, with one difference: they inherit the parent theme’s resources. There are no limits on the chaining capabilities connecting sub-themes to their parents. A sub-theme can be a child of another sub-theme, and it can be branched and organized however you see fit.
Can a sub theme be set to any theme?
Site-specific changes can be set to a specific sub-theme, but any shared resources can be edited once to be applied across all the installations. With careful planning, the possibilities are endless. A sub-theme must have a different internal name (i.e., the name used by Drupal) from its parent theme.
How to create a sub theme in Drupal 7?
The easiest way is usually to copy the theme_name .info file from the parent theme (” theme_name ” stands for the internal name of the parent theme), and to rename it as my_subtheme .info.
Is the base theme in Drupal 7 inherited?
In Drupal 7, features are not inherited from the base theme. If you are using features other than the default, you should copy the features declarations from the parent theme’s .info file. Color.module support within the color directory is not inherited.
How can sub-theming be used in a project?
With sub-theming, a lot of the design resources can be shared. Site-specific changes can be set to a specific sub-theme, but any shared resources can be edited once to be applied across all the installations. With careful planning, the possibilities are endless.