官术网_书友最值得收藏!

  • Learning Drupal 8
  • Nick Abbott Richard Jones
  • 337字
  • 2021-07-16 09:36:54

Themes

A Drupal theme is the engine that provides the framework for the visual layout and design of your site, including bringing together the CSS, JavaScript, images, and colors. A Drupal theme itself determines the visual design of the website you are building.

In the standard install, there are a number of basic themes provided, and you can switch between them at any time.

The Standard profile installation ships with the Bartik theme. This theme is comprised of 17 page regions into which you can place one or more blocks. The 17 regions are shown in the following diagram:

As you can see from the preceding diagram, the list of default regions for the Bartik theme and their relative positions on the page is enough to fill the layout of many sites.

Page and theme template regions will be covered in detail in Chapter 13, Theming Drupal.

Just as with modules, you can download themes from https://www.drupal.org/ or you can create your own.

All themes have a settings page allowing you to change certain elements of the display, for example the color scheme used or whether to display the site logo and name. More complex themes have a greater range of settings within them.

Administration themes

There are also themes that are designed for use when visiting administrative pages, such as when managing users or create actual content. Themes such as these are known as administration themes or admin themes for short.

Drupal 8 ships with Seven as its admin theme.

A lot of effort has been made in Drupal 8 to ensure that admin themes work well on mobile devices allowing you to edit your content while on the move.

Base themes and subthemes

Some themes are not designed as finished products, but instead as starting points for your own theme development. These are commonly referred to as base themes. You can, and should, extend and override a base theme by creating a subtheme.

Themes will be covered in more detail in Chapter 13, Theming Drupal.

主站蜘蛛池模板: 马边| 阿拉尔市| 日喀则市| 满洲里市| 黄龙县| 遵义市| 忻州市| 维西| 犍为县| 桃源县| 富宁县| 东港市| 永川市| 安阳县| 土默特左旗| 阳曲县| 华亭县| 济阳县| 东台市| 湖南省| 曲沃县| 四子王旗| 宁海县| 六枝特区| 富锦市| 盐边县| 合阳县| 祥云县| 赤水市| 桃源县| 广元市| 津市市| 梁山县| 舞钢市| 桂阳县| 临沭县| 黄山市| 句容市| 扎囊县| 和平县| 北流市|