How to set base theme: seven properly

Created on 26 July 2023, 11 months ago
Updated 27 July 2023, 11 months ago

Problem/Motivation

I'm using the adminimal_theme with my Drupal 9.5.10.
in adminimal_theme.info.yml I've found:
base theme: seven

Since the Seven core theme is deprecated, I've installed this one, disabled core Seven theme and enabled Seven contrib theme.

But how should I declare now the Seven theme as 'base theme' in another theme?

tried the same:
base theme: seven

but now the site throws an error:
Drupal\Core\Theme\MissingThemeDependencyException: Base theme seven has not been installed. in Drupal\Core\Theme\ThemeInitialization->getActiveThemeByName() (line 115 of core/lib/Drupal/Core/Theme/ThemeInitialization.php).

Steps to reproduce

enable the theme that uses Seven as a 'base theme'

Proposed resolution

Provide the way to use contrib Seven theme as the base them.

💬 Support request
Status

Needs review

Version

1.0

Component

Code

Created by

🇬🇪Georgia almador

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @almador
  • 🇮🇳India swatidhurandhar

    Hi @almador, I followed the same steps as you mentioned above.
    I installed drupal 9.5.10 and installed adminimal theme which uses 'seven' as base theme. As you mentioned, you disabled core theme seven, but I wasn't getting option to disable it. Instead I just installed contrib seven theme and core seven is replaced by contrib one. I have kept default and admin theme as 'Adminimal' but not getting any error. I have attached screenshots for reference.
    I would suggest, start with a fresh setup and install contrib seven theme. Core seven will be replaced by it and you can keep it base theme of any another theme. It won't give any error.

  • Status changed to Needs review 11 months ago
Production build 0.69.0 2024