Additional themes for Drupal 8 may be limited at first, but we can find prebuilt themes at several places. Some of these themes have to be purchased, whereas others are free to use. We will take a look at Drupal.org to find some prebuilt themes and how to install them using the Drupal admin, how to manually install a theme, and finally how to uninstall a theme once we're done using it.
Begin by opening up a new tab in our browser and navigating to https://drupal.org/project/project_theme.
The Download & Extend section of Drupal.org allows us to filter results based on various options. We can find Drupal 8-specific themes by performing the following steps:
At this point, we should have two tabs opened in our browser. One opened to the Bootstrap 3 theme and the other tab opened to the Appearance admin of our Drupal instance.
From the Appearance admin, we can install a new theme by clicking on the Install new theme button, which will take us to the Install new theme interface, as shown in the following image:
We will first take a look at using the Install from a URL option to install the Bootstrap 3 theme.
To install a theme from a URL, we only need to know the URL path to the archived theme file. This can be obtained from the Theme project page where the theme was found.
Follow these four steps:
Congratulations, we have installed our first prebuilt theme. As we can see, the process of installing a theme from a URL is quite simple. In fact, the process of installing a new theme from a file is not that different, as we will see.
If we navigate to /admin/theme/install
, we will be back on the Install new theme screen. The Upload a module or theme archive to install option requires that we have a copy of the archived theme downloaded.
If we navigate back to the Drupal.org Theme project page and look a little further down our search results, we will see another popular theme based on the ZURB Foundation framework, as shown in the following image:
We will be downloading the current Drupal 8 Development release of the theme by clicking on either the tar.gz or zip links. This will initiate a file download to our specified downloads folder. We will use this downloaded file to perform the following steps from the Install new theme admin:
We have now mastered using the Drupal Admin to install themes from both a URL and an archive. However, the preferred method to install a theme is by manually installing it. The benefit to choose this method is that we have full control over the themes
folder, and if we are doing any type of custom theming, we will need to be familiar with this process anyway.
3.137.163.197