Creating a subtheme is the way to go if you need more advanced custom styling and templating for your Glazed Drupal websites! It's as easy as subtheming any other theme, follow these easy steps!
Copy the Starterkit and rename files
- In the directory which contains your websites files find folders containing your theme
- In drupal 7 it is /profiles/cms/themes or /sites/all/themes
- Copy folder glazed_STARTERKIT into the themes folder and rename your theme. For example glazed_mytheme
- The proper location for the sub-theme is site/all/themes in Drupal 7
- Rename glazed_STARTERKIT.info and set up theme information
- Rename glazed_STARTERKIT.info to the same name of your theme, for example glazed_mytheme.info
- Open the file with a text editor and enter a title and description of your theme
- Color picking settings of your sub-theme won’t work until the functions in template.php are renamed the same as your theme.
- Open template.php file and rename the following lines:
- glazed_STARTERKIT_proccess_html to glazed_mytheme_proccess_html
- glazed_STARTERKIT_proccess_page to glazed_mytheme_proccess_page
Upgrading Glazed theme versions
- Upgrading the Glazed theme base theme will automatically make your subtheme inherit the new theme settings and features.
- Using Drupals color module requires extra steps:
- Update Glazed theme
- Copy the new glazed/css/glazed.css to your subtheme’s css folder
- Copy new glazed/color/folder to your subtheme (in case new colors are added)
- Save the theme settings at admin/appearance/settings/glazed_mytheme