打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
How we got a custom Drupal 8 theme up and running ...
In finder, navigate to this file by following the path structure shown and copy this file. Navigate back to your theme folder and inside the “templates” directory paste “page.html.twig”. Even though we have disabled the cache will will need to flush Drupal’s cache every time we create a custom template in our templates folder. This is where you have to make a decision. If you only ever want custom templates to live inside your theme then you will have to live with navigating back and forth between the “class” theme directory in “core” and your own theme directory every time you want to create a new template. You will also have to flush the cache each time you do so. Alternatively, you could copy the entire “classy” “templates” directory in to your own theme and flush the cache just once. The downside to this is that all of your templates will show as overridden and you will struggle to determine whether a template has been altered from its original state. Whatever, you decide to do, make a decision and stick with it - for better or worse. And once you have, go back to your site and do the usual “Configuration” → “Performance” → “Clear all caches” routine. Then navigate “Back to site”.
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Struts2 Performance Tuning
35个最佳响应式HTML5和CSS3模板
Introduction to PHP for theming | drupal.org
全新做一个自己的模板步骤是?应参考那些文档? - 模板美工 - 用户论坛
freemarker加载模板
Rain TPL
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服