How to create a subtheme for Open Atrium
Open Atrium is shipped with Open Atrium Radix, a sub-theme of the Radix theme for Panopoly. Check the project page of Radix for further background information on this Bootstrap based theme.
Find general information about Drupal subtheming. Read about Radix subtheming; this page also shows you how to create a sub-theme manually, in case the Drush method doesn't work for you.
Please note that creating subthemes is never going to be a completely black-box "click one button" process. It is still expected that it's done by somebody familiar with writing Drupal themes, etc. The drush command is just a starting point to save a bunch of work.
Below is a summary of steps to generate a valid sub-theme of oa_radix
- Run
drush oa_radix mysubtheme. If you get the error:The drush command 'oa_radix mysubtheme' could not be found, don't forget to rundrush dl oa_radixanddrush cc drushto ensure you are subtheming from an install in/sites/all/themes/ - Run
compass watchin site/all/themes/mysubtheme/ cp profiles/openatrium/themes/oa_radix/colorizer.inc sites/all/themes/mysubtheme/(Optional, if colorizer is needed)cp profiles/openatrium/themes/oa_radix/assets/stylesheets/colorizer.css sites/all/themes/mysubtheme/assets/stylesheets/(Optional, if colorizer is needed)cp profiles/openatrium/themes/oa_radix/templates/colorizer.htm sites/all/themes/mysubtheme/templates(Optional, if colorizer is needed)- goto
admin/appearance, enable mysubtheme - goto
admin/config/development/bootstrap_library, Themes Visibility -> Activate on specific themes -> Only the listed themes, add mysubtheme - goto
admin/appearance, set default mysubtheme - DONE.
Please note that after these steps have done, the created subtheme only has one region (content region). If you need more regions so that you can add/arranges blocks, you have to add regions in .info file. Without adding more regions, the subtheme may look like NOT working or some errors.
Subtheme troubleshooting
I cannot edit panels content using the editor. I just see a cog that spins forever.
You have not enabled bootstrap for your sub-theme. Follow the step above to activate it on your subtheme.
Help improve this page
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion