There are some containers in Luma theme, how can I get their names?

I want to move the container that has the search bar below the container that has the main menu. Thanks.

1 Answer 1


This will do it.

<move element="top.search" destination="content" before="-" />

For finding containers you have to look through layout xml files; they are in the respective Magento modules and theme overrides.

Magento 2 has a utility in the backend for blocks goto:

Stores -> Configuration -> Advanced -> Developer -> Debug

from here you'll have options of:

  • Enabled Template Path Hints for Storefront
  • Add Block Names to Hints

do that it and you'll get some insight about blocks and where to look.

  • Thanks a lot. On destination content, I got the search box on the cms page (if that makes sense). However, on getting the "top.search" got a few interesting links. Finally added a custom container and am happily styling at the moment. Regards.
    – fran35
    Commented Aug 2, 2018 at 22:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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