| 
									
										
										
										
											2015-03-16 21:18:03 +00:00
										 |  |  | --- | 
					
						
							|  |  |  | title: Create a Zen Sub-theme Using Drush | 
					
						
							| 
									
										
										
										
											2020-03-08 14:32:13 +00:00
										 |  |  | date: 2013-09-06 | 
					
						
							| 
									
										
										
										
											2018-12-31 12:13:05 +00:00
										 |  |  | excerpt: How to quickly create a Zen sub-theme using Drush. | 
					
						
							| 
									
										
										
										
											2015-03-16 21:18:03 +00:00
										 |  |  | tags: | 
					
						
							| 
									
										
										
										
											2015-06-14 03:27:41 +01:00
										 |  |  |   - drupal | 
					
						
							|  |  |  |   - drupal-planet | 
					
						
							|  |  |  |   - drush | 
					
						
							|  |  |  |   - zen | 
					
						
							|  |  |  |   - theming | 
					
						
							| 
									
										
										
										
											2015-03-16 21:18:03 +00:00
										 |  |  | --- | 
					
						
							| 
									
										
										
										
											2015-06-18 08:58:56 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-03-08 17:52:59 +00:00
										 |  |  | How to use [Drush](https://drupal.org/project/drush) to quickly build a new | 
					
						
							|  |  |  | sub-theme of [Zen](https://drupal.org/project/zen). | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | First, download the [Zen](https://drupal.org/project/zen 'The Zen theme') theme | 
					
						
							|  |  |  | if you haven't already done so. | 
					
						
							| 
									
										
										
										
											2015-03-16 21:18:03 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-16 08:09:52 +00:00
										 |  |  | ```language-bash | 
					
						
							|  |  |  | $ drush dl zen | 
					
						
							|  |  |  | ``` | 
					
						
							| 
									
										
										
										
											2015-03-16 21:18:03 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | This will now enable you to use the "drush zen" command. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-16 08:09:52 +00:00
										 |  |  | ```language-bash | 
					
						
							|  |  |  | $ drush zen "Oliver Davies" oliverdavies --description="A Zen sub-theme for oliverdavies.co.uk" --without-rtl | 
					
						
							|  |  |  | ``` | 
					
						
							| 
									
										
										
										
											2015-03-16 21:18:03 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 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). | 
					
						
							| 
									
										
										
										
											2020-03-08 17:52:59 +00:00
										 |  |  | 4. A flag telling Drush not to include any right-to-left elements within my | 
					
						
							|  |  |  |    sub-theme as these aren't needed (optional). | 
					
						
							| 
									
										
										
										
											2015-03-16 21:18:03 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | This will create a new theme in sites/all/themes/oliverdavies. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-03-08 17:52:59 +00:00
										 |  |  | For further help, type `$ drush help zen` to see the Drush help page for the zen | 
					
						
							|  |  |  | command. |