How to add a header area?

六眼飞鱼酱① 提交于 2019-12-25 03:35:30

问题


Please tell me how to add a header area on this page. Photo below.


回答1:


  1. Declare any new regions in your THEMENAME.info.yml file.

  2. Print your region in page.html.twig.

If you declared

header: 'Header'

then you will print it in page.html.twig like this:

{{ header }}

After that you can create your custom block and place it in the newly created region. For more details and info go to Drupal 8 Docs.



来源:https://stackoverflow.com/questions/53790860/how-to-add-a-header-area

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!