Skip to content

Instantly share code, notes, and snippets.

Last active January 14, 2021 23:58
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save vasilii-b/1947fd38c9b8822ff82e2d85d9e83723 to your computer and use it in GitHub Desktop.
Adding an empty container in Magento 2 layout file
<container name="some.container" htmlTag="div" htmlClass="container">
<!-- Force container to render -->
<block class="Magento\Framework\View\Element\Text">
<argument name="text" xsi:type="string"><![CDATA[&nbsp;]]></argument>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment