Last active
November 22, 2017 12:15
-
-
Save devudit/c053b90aacbe93ab67277bffdb5ee36a to your computer and use it in GitHub Desktop.
Move blocks to other container using layout xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
There is a new move node in the layout xml that we have access to in M2. | |
This node sets the declared block or container element as a child of another | |
element in the specified order. | |
--> | |
<!-- EXAMPLE --> | |
<move element="name.of.an.element" destination="name.of.destination.element" as="new_alias" after="name.of.element.after" before="name.of.element.before"/> | |
<!-- In the example you provided before you should just be able to call: --> | |
<move element="store.settings.language" destination="header.container" as="store_settings_language"/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment