Sub-theming

One of the first things you might want to do is create your own sub-theme. Thankfully this is a simple task and will only take you a few minutes.

First download the theme from Drupal.org: http://drupal.org/project/adaptivetheme

Unpack the archive to your hard drive and look inside the main folder, the structure will look like this:

adaptivetheme
- at_core (the core base theme)
- at_admin (AT Admin theme)
- at_subtheme (the one we are interested in)

1. Copy and paste at_subtheme, it doesn't matter where you place the copied version as long as its in a theme directory. For example if you are using sites/all/themes you can place it there - so you end up with: sites/all/themes/footheme.

2. Rename the info file and edit the info file details. For example lets assume you want your theme to be called "footheme", the name of the info file will be "footheme.info". Once you have renamed the file open it up and change the "name" to footheme and change the description to suit your taste.

3. Edit the theme-settings.php and template.php files - here we will be replacing "adaptivetheme_subtheme" with your themes name, in this case "footheme" - this must match the name you gave to the info file. The easy way is to just use search and replace.

Thats it, done. You can now enable your new sub-theme and start theming. For an even faster way you can create a new subtheme with Drush.

Last updated 4th July, 2012 - 11:30pm