The following description of how to create a sub-theme is based on the "Creating a sub-theme" documentation on drupal.org, so make sure to check it out in case you want some deeper insight on the subject.
That said, we will not go too much into the details but give you just the basics to let you hit the ground running.
basically there are three easy options to create the subtheme:
- use drush with
$ drush omega-wizardand select
ERPAL themeas base theme
- duplicate the erpal-theme, refactor the themename and set the base-theme dependency (see step #2.1)
- create the whole shebang by hand
here we want to show you the basic steps on how to create the subtheme by hand, as it also covers all the important steps when refactoring the theme-name.
1. Create a new theme folder
sites/all/themes/ folder inside your ERPAL installation and create a new folder for your sub-theme.
Please be aware, that the folder must start with an alphabetical character and only contain lowercase letters,
numbers and underscores (e.g.
No magic so far.
2. Create the basic theme content
Your new subtheme needs some additional config, that will be done in the
my_awesome_subtheme.info-file (or however
you named your theme). It is important that the file-name resembles the folder-name.
This is what the basic content should look like:
name = My awesome subtheme description = This is a sub-theme of ERPAL Theme core = 7.x base theme = erpal_theme
Again, make sure to adjust the sub-theme-name.
3. Clear cache
Configuration » Development » Performance » "Clear all caches", you know the deal, right?
drush cc all
4. Enable your sub-theme
- go to: "Appearance"
- look for your theme in the "Disabled themes" section
- click on "Enable and set as default"
Now your awesome new theme should be first in the list of "enabled themes" and set as default. Cheers!