Creating a subtheme is the way to go if you need more advanced custom styling and templating for your DXPR 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 dxpr_theme_STARTERKIT into the themes folder and rename your theme. For example dxpr_theme_mytheme
- The proper location for the sub-theme is site/all/themes in Drupal 7
- Rename dxpr_theme_STARTERKIT.info and set up theme information
- Rename dxpr_theme_STARTERKIT.info to the same name of your theme, for example dxpr_theme_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:
- dxpr_theme_STARTERKIT_proccess_html to dxpr_theme_mytheme_proccess_html
- dxpr_theme_STARTERKIT_proccess_page to dxpr_theme_mytheme_proccess_page
Upgrading DXPR theme versions
- Upgrading the DXPR theme base theme will automatically make your subtheme inherit the new theme settings and features.
- Using Drupals color module requires extra steps:
- Update DXPR theme
- Copy the new dxpr_theme/css/dxpr_theme.css to your subtheme’s css folder
- Copy new dxpr_theme/color/folder to your subtheme (in case new colors are added)
- Save the theme settings at admin/appearance/settings/dxpr_theme_mytheme