Last active
January 14, 2021 23:58
-
-
Save vasilii-b/1947fd38c9b8822ff82e2d85d9e83723 to your computer and use it in GitHub Desktop.
Adding an empty container in Magento 2 layout file
This file contains 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
<container name="some.container" htmlTag="div" htmlClass="container"> | |
<!-- Force container to render --> | |
<block class="Magento\Framework\View\Element\Text"> | |
<arguments> | |
<argument name="text" xsi:type="string"><![CDATA[ ]]></argument> | |
</arguments> | |
</block> | |
</container> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment