Drupal 9 添加自定义主题未显示在外观

Drupal 9 adding a custom theme not showing at Appearance

所以我正在尝试将自定义主题添加到新的 Drupal 9 站点,但该主题根本没有显示在我的“外观”选项卡中。我遵循了一些修复和教程,但一点运气都没有。不确定此时该做什么。我对 Drupal 非常陌生,非常迷茫。

这是我所做的:

除此之外没有任何错误消息或任何东西

请在您的主题目录和信息 YAML 文件中将破折号换成下划线 (test_theme)。

根据 Name your theme 上的文档,说明:

There are some important rules to follow when selecting a machine name:

  • It must start with a letter.
  • It must contain only lower-case letters, numbers and underscores.
  • It must not contain any spaces.
  • It must not be longer than 50 characters.
  • It must be unique. Your theme should not have the same short name as any other module, theme, theme engine, or installation profile you will be using on the site.
  • It should not be any of the reserved terms (folders in the Drupal distribution): src, lib, vendor, assets, css, files, images, js, misc, templates, includes, fixtures, drupal.