【发布时间】: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 中复制了这个新主题,但仍然没有运气。我错过了什么吗?
【问题讨论】: