In my custom theme I need to put the header and menu in one div. Now I have the following structure: enter image description here

How can I add blocks in one div so I can have this structure ? enter image description here

1 Answer 1


You need to add the following to your theme's default.xml layout file:

<move element="navigation.sections" destination="header.container" />

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.