Since we inherit from the stable theme, the templates also inherit from it. jQuery is optional for Drupal, so if we want to use jQuery in our custom JavaScript, we add a dependency for it dependencies:Ĭreate the css, js folders and put the files there: Global-styling - this is exactly the name we set in Ĭss - here we include CSS files, note that for the print version of the site we specified media: print. Machine names for regions are written using underscores.Īdd the following lines to : global-styling:Īnd now let's parse everything line by line: Also, if the name of the region is two or more words, do not forget to wrap it in quotation marks. Required content region, the contents of Drupal are displayed through it. Pay attention to global-styling, we will use it in. ![]() We do this through the file that we will create next. A Drupal 9 theme with great features, custom modules and theme settings for news and op. Coming to Drupal 9 Drupal 9 Drupal 8 Drupal 7 Interchangeable Layout Builder Commerce. Libraries - here we include libraries to our module. A Drupal 9 theme with a gorgeous dark design and great features for news and op-eds sites. ![]() Type - the project type is Drupal, we have this topic.īase theme - we inherit from the stable theme, if the theme is from scratch, then write false.ĭescription - a description of the theme that is displayed in the admin panel.Ĭore - the version of the Drupal core for which this theme is. The machine name of our theme is the name of the folder and file - drupalbook. This article provides detailed information on the YAML format:ġ) Do not use tabs for indentation, only spaces.Ģ) Indents must be 1 or more spaces. In the folder of our theme, create tcore: 8.xhe file theme_: I will create the folder/themes/drupalbook, you can name your theme as you like:Ĭreate a file with basic information about You can put folders like in drupal 7 sites / all / themes, but it is best to use the new Drupal file structure and put in the / themes folder. We put all new themes in the / themes folder. In the next section of the tutorial, with our knowledge of creating themes for Drupal, we will start working with Bootstrap. You should not start with Bootstrap, you will constantly have questions and errors. If you want to learn Drupal, then Stable is a great start. ![]() To do your theme will be based on the theme-builder of the core Stable. In this section of the tutorial, we will analyze the basics of the topic on Drupal, where what lies, how to include and use CSS, JavaScript. Starting with this article, we will do our theme thing on Drupal.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |