![]() ![]() Your theme should not have the same short name as any other module, theme, theme engine, or installation profile you will be using on the site. ![]() It must not be longer than 50 characters.It must contain only lower-case letters, numbers and underscores.There are some important rules to follow when selecting a machine name: ![]() If your theme name is longer, like "Very Fluffy", your machine name would be "very_fluffy". For example, if your theme is named "Fluffiness", then the machine name is "fluffiness". The machine name is usually the human-readable name, converted to lower-case and with underscores instead of spaces. The machine name will be used as the name for files, folders, and functions in your theme, and is used by core Drupal programmatically to refer to your theme. The first step in creating a theme is to choose a human-readable name for it, and a corresponding machine name. This page provides an example file and an overview of the information that the file can contain. info.yml to 'theme' in order to differentiate it. This is similar to how modules and installation profiles are being defined, and as such, it is important to set the 'type' key in the file. To create a Drupal 8 or later theme you need to first create a file that provides meta-data about your theme to Drupal. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |