2

i want to move the Logo inside a new Div Container with my custom default.xml. But how can i do this? My default.xml look like this:

<referenceContainer name="header.container">
        <referenceContainer name="header-wrapper">
            <container name="logo-wrapper" label="Page logo" as="logo-wrapper" htmlTag="div" htmlClass="logo content">
                <referenceBlock name="logo">
                    <arguments>
                        <argument name="logo_img_width" xsi:type="number">148</argument>
                        <argument name="logo_img_height" xsi:type="number">43</argument>
                    </arguments>
                </referenceBlock>
            </container>
        </referenceContainer>
</referenceContainer>

Thanks

1 Answer 1

0

This can be done with the move command in your default.xml. You can read more about it here:

Move blocks to other container how to

and there is a good post about how to find out the name of the block that you need to move here:

Find out the "name" for a referenceBlock in Magento 2

0

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.