Create a Zen Sub-theme Using Drush

Posted: 6th September 2013

Tags: drupal, drupal-planet, drush, zen, theming

First, download the Zen theme if you haven't already done so.

$ drush dl zen

This will now enable you to use the "drush zen" command.

$ drush zen "Oliver Davies" oliverdavies --description="A Zen sub-theme for oliverdavies.co.uk" --without-rtl

The parameters that I'm passing it are:

  1. The human-readable name of the theme.
  2. The machine-readable name of the theme.
  3. The description of the theme (optional).
  4. A flag telling Drush not to include any right-to-left elements within my sub-theme as these aren't needed (optional).

This will create a new theme in sites/all/themes/oliverdavies.

For further help, type $ drush help zen to see the Drush help page for the zen command.

About the Author

Picture of Oliver

Oliver Davies is a Web Developer, System Administrator and Drupal specialist based in the UK. He is a Senior Drupal Developer at Microserve and also provides freelance consultancy services for Drupal websites, PHP applications and Linux servers.

Availability

Currently have limited part-time capacity

Currently no spare full-time capacity.