![]() The base theme value is used if you want your theme to be based on another theme. The description value allows you to specify a description for your theme. ![]() The type value declares to Drupal that this is a theme. But it's usually a good idea to keep this name more or less the same as the machine name to avoid confusion, in this case we're going with "Katniss". ![]() This could be something other than the machine name "katniss", such as "Everdeen" or "My super AweSome fancy Theme". The name value is the "human readable" name of your theme. And insert the following code (this is what actually creates the theme in the eyes of Drupal): name: Katnissĭescription: Custom theme for District 12 Inside “katniss” create a new file named. In this example where we’re creating a theme named “Katniss” the folder should be named “katniss” (lowercase is the convention of all folder and file names). Now in the themes/custom folder you create the actual folder containing your theme. But if you are going to become a honourable Drupal citizen you should go for the “orderly and pretty” option and follow this Drupal convention. This subfolder structure (themes/custom and themes/contib) is a convention and not a technical requirement. If you download contributed themes from or elsewhere, you should place them in a folder named “contrib". (In Drupal 7 this used to be sites/all/themes.) To keep everything orderly and pretty we are going to create a folder inside themes named “custom”. This is the location where you store themes – both downloaded contributed themes from and custom themes that you create yourself. Open the themes folder in your site root (e.g ~/username/Sites/devdesktop/drupal-8.3.2/themes). ![]() The theme will be based on the Bartik that is the default theme in Drupal 8. The "vanilla" file tree of your site root in PHPStormįor the purpose of this tutorial we’re going to create a custom child theme named Katniss in the themes-folder. Find your local site root in Acquia Dev Desktop. As of lately I recommend using Acquia Dev Desktop for learning and testing purposes – read about that in my previous blog post here ( ).įind your document root and open it in an editor such as PHPStorm or Sublime. Install Drupal 8 by your preferred method.
0 Comments
Leave a Reply. |