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

Installing and uninstalling themes

The act of installing or uninstalling a theme is a common practice when administering a Drupal website. Let's try installing Stark and making it our default theme in place of Bartik.

Step one – installing a theme

Currently, the only uninstalled theme is Stark, and we can easily move this into the installed state by following these two steps:

  1. Click on the Install and set as default link.
  2. Scroll back to the top of Appearance admin.
  3. If we now look at the Installed themes section, we should see that we now have three themes installed: Stark, Bartik, and Seven. We can also tell that Stark is now our default theme by looking to the right of the themes name, which will be marked as (default theme) as shown in the following image:

We can also see what the Stark theme looks like by clicking on the Back to site link in the Admin menu, which will take us back to the frontend of our website. We are now presented with an unstyled page, which is to help demonstrate the clean markup of Drupal.

Step two – uninstalling a theme

It is just as easy to uninstall a theme, and one nice feature of Drupal 8 is that it ensures that we have at least one installed theme set as default. Otherwise, we won't even have the option of uninstalling the theme.

Let's navigate back to the Appearance admin located at /admin/appearance and uninstall the Stark theme by following these two steps:

  1. Locate the Bartik theme and click on Set as default.
  2. Locate the Stark theme and click on Uninstall.

We saw how simple it is to install and uninstall themes within Drupal 8. Another common task we will find ourselves completing within the Appearance admin is adjusting the settings of a theme.

主站蜘蛛池模板: 长乐市| 西青区| 赤峰市| 富锦市| 茶陵县| 呈贡县| 盐池县| 渝北区| 桐城市| 岑巩县| 澳门| 丹棱县| 缙云县| 铜鼓县| 中山市| 蛟河市| 贵定县| 曲麻莱县| 临西县| 淳安县| 望城县| 礼泉县| 墨竹工卡县| 安徽省| 大渡口区| 临夏县| 金溪县| 祁东县| 苍溪县| 任丘市| 和静县| 乌鲁木齐市| 临汾市| 桐柏县| 新巴尔虎左旗| 镇原县| 庄河市| 荃湾区| 化隆| 济源市| 彩票|