I need to wrap .header.content in a . How can I do that using default.xml file?

I think using something like that:

        <referenceBlock name="header-wrapper">
            <container htmlTag="div" htmlClass="header-main-wrapper">
                <block name="??? />

I cannot find the block name... how can I find it out?


I did in this way:

<referenceBlock name="header.container">
    <container name="header-main-wrapper" htmlTag="div" htmlClass="header-main-wrapper" />

<move element="header-wrapper" destination="header-main-wrapper" before="-" />

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.