[last updated: 2024-01-19]
Drupal home page
theme management
-----
These notes are written in the context of Drupal 10. Things here may or may not be valid for earlier distributions.
This page needs re-write/verification ...
On This Page:
- definition/description of themes
- see what themes are installed on your site
- how to find and install other themes.
---------------------------------------------------------
- A Theme is a collection of files that define the "look and feel" of your website.
The look and feel are differentiated from the content, which is the actual words or images on your site.
The theme defines the position, size, color, borders, etc. of the content, as well as dynamic aspects like responses to mouse actions.
In general, themes do their magic using CSS (see: CSS in Drupal)
- There are thousands of themes available to be used on a Drupal site. A few themes ("core" themes) are included with the Drupal installation.
For example, the olivero theme is the default theme for Drupal 10.2.1
Other themes ("contributed" themes) can be found on the web and loaded and installed into your site.
- The set of files that constitute your theme will be located in a directory, with the name of the directory being the name of the theme.
- The theme directories will be located in different places, depending on whether they're core or contributed.
- Core theme directories are located in [root] /core/themes
- Contributed themes loaded from Appearance page with a downloaded .tar.gz file will have their theme directories in [root] /themes
- Contributed themes loaded with composer will have their theme directories in [root] /themes/contrib
---------------------------------------------------------
- See the themes that are installed on your site:
open a browser to your website and log in.
click Appearance in top menu bar.
scroll down to examine available options.
Note: This page will show all themes that are "loaded" into your site.
Some will be listed as being "installed", while others will be "uninstalled."
You can click appropriate buttons to change the installed/uninstalled status of any theme loaded into your site.
In addition: the first installed theme listed will be labeled as your "default" theme. This is the theme that is currently active on your site.
You can select any installed theme as your choice of default/active theme.
- To select/activate an installed theme:
- In the block on Appearance page that describes the theme you want,
click "set as default"
- scroll to the bottom and click Save Configuration
---------------------------------------------------------
- If you want a different/new theme:
You can search the web to find one, or you can customize an existing theme, or you can create a new theme.
See theme management link above.
---------------------------------------------------------
- To install a theme you find on the web (2 ways to do this):
---------------------------------------------------------
- might need to clear the cache...
https://www.drupal.org/docs/user_guide/en/prevent-cache-clear.html