0

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="??? />
            </container>
        </referenceBlock>

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

0

I did in this way:

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

<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.