【问题标题】:Drupal 8 Open Social new sub-theme not showing in appearanceDrupal 8 Open Social 新子主题未在外观中显示
【发布时间】:2019-01-01 13:31:36
【问题描述】:

我正在使用 Drupal 的开放社交框架,在其中我复制了 socialblue 主题,以便我可以在新主题中进行修改。我按照以下步骤清除了缓存,但我无法在管理/外观部分看到我的新主题。

我遵循的步骤:

1) 我将主题 socialblue (html/profiles/contrib/social/themes/socialblue) 复制到 新主题(html/profiles/contrib/social/themes/newtheme)

2)我在“newtheme”目录中进行了搜索(socialblue)并替换了(newtheme)

3) 我将以下文件的名称从“socialblue”更改为“newtheme”

  • newtheme.info.yml
  • newtheme.libraries.yml
  • newtheme.theme
  • config/install/newtheme.settings.yml

4) 我从 default.services.yml 创建了一个 /html/sites/default/services.yml 文件并进行了以下更改

    • twig.config -> 调试:真
    • twig.config -> auto_reload: true
    • twig.config -> 缓存:假

5) html/profiles/contrib/social/themes/newtheme$ 纱线安装

6) html/profiles/contrib/social/themes/newtheme$ sudo npm install -g gulp-cli

7) html/profiles/contrib/social/themes/newtheme$ gulp

我没有收到任何错误。我确保我的 newtheme.info 文件名为 newtheme。我还在 html/themes/custom/newtheme 中复制了这个新主题,但仍然没有运气。我错过了什么吗?

【问题讨论】:

    标签: drupal drupal-8


    【解决方案1】:

    我解决了。原来是因为我的基本主题被称为“socialblue”。我把它改成了“socialbase”,结果成功了。我不知道在 drupal 8 中父主题是否可以有多个子主题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-10-01
      • 2017-07-19
      • 1970-01-01
      • 2019-07-22
      • 1970-01-01
      相关资源
      最近更新 更多