In my header region, I have two blocks: menu and search. I want to add some other HTML between them. I tried using {{ content.menu}}, but it doesn't actually do return anything.

I can split up the content with {{ content.field_type }}, but this approach doesn't seem to be working in region.html.twig.


Never mind! By using {{ dump() }} I was able to see that I can get the individual blocks by using:

{{ elements.search }} 

{{ elements.menu }}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.