Community Documentation

Create a new theme

Last updated April 13, 2013. Created by mortendk on April 17, 2012.
Edited by LeeHunter, batigolix, FreeFox, kattekrab. Log in to edit this page.

  1. Install Mothership in your sites/all/themes folder
  2. Copy the mothership/NEWTHEME
  3. folder to either sites/all/themes/NEWTHEME/ or, if it's a multi-site setup, the site folder sites/[sitename]/themes/NEWTHEME

  4. Rename the NEWTHEME folder. In this example, we'll call it "blackpearl". Also change the name of the .info.example file (remove the .example part and change the name to i.e. blackpearl.info) and its descriptive name found in the .info file, name = The Black Pearl
  5. Optional: open the template.php file and search/replace all the theme functions i.e. replace 'NEWTHEME' with 'blackpearl.
  6. Now you're ready to enable the theme. Go to the Appearance page /admin/appearance/list, enable your sub theme, and set as default.
    Note: The base Mothership theme does not have to be activated

For information on using Drush, see Create a sub theme using Drush.

Using another theme

If you have an existing theme, you can make use of the mothership cleanups by adding it as the base theme in your themename.info file. Line 7 in the image.

info file

About this page

Drupal version
Drupal 7.x
Audience
Designers/themers
Level
Intermediate
Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.