sheettore.blogg.se

Drupal 7 stability theme center iconbox
Drupal 7 stability theme center iconbox









drupal 7 stability theme center iconbox

The important exceptions are regions, core version, and color info. For instance: name = My Subthemeĭescription = This is a sub-theme of theme Bartik, made by John for the web site (red, responsive).Īs the sections below indicate, the sub-theme inherits most properties of the base theme. It is also a good idea to modify the human-readable name of your sub-theme by altering the line beginning by name =, and the description of your sub-theme by altering the line beginning by description =. Then you need to add the following line to my_ 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. The easiest way is usually to copy the theme_ file from the parent theme (" theme_name" stands for the internal name of the parent theme), and to rename it as my_.

drupal 7 stability theme center iconbox

To declare your theme to be a sub-theme of another, you must put a my_ file inside your my_subtheme folder (remember that " my_subtheme" stands for your sub-theme internal name). The sub-theme folder should be located inside the folder sites/ /themes/ (" " stands for your site name) or, if you want to use your sub-theme for several sites, inside sites/all/themes/ (e.g., sites/ /themes/ my_subtheme or sites/all/themes/ my_subtheme). This folder should have the same name as the internal name of the sub-theme (e.g., my_subtheme). The sub-theme to-be should be located in its own directory. Let's suppose this sub-theme internal name is "my_subtheme". The name of your sub-theme must start with an alphabetic character and can only contain lowercase letters, numbers and underscores. This name must not contain any spaces or other special characters. Creating a sub-themeĪ sub-theme must have a different internal name (i.e., the name used by Drupal) from its parent theme. With careful planning, the possibilities are endless. 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.

drupal 7 stability theme center iconbox

Working on a multi-site installation, but you need a cohesive look and feel? With sub-theming, a lot of the design resources can be shared. Then, from the same wireframe, testing out alternate designs by branching out another sub-theme. Imagine starting with a base theme designed as wireframes, then applying and refining all the details from a sub-theme. This is what gives sub-themes great potential. A sub-theme can be a child of another sub-theme, and it can be branched and organized however you see fit. There are no limits on the chaining capabilities connecting sub-themes for their parents. Sub-themes are just like any other theme, with one difference: They inherit the parent theme's resources.











Drupal 7 stability theme center iconbox