I am working with magento 2 layout containers. I need to create a container inside and below <div class="columns"> .

My HTML should be like below,

<main id="maincontent" class="page-main"><a id="contentarea" tabindex="-1"></a>
<div class="page messages"> </div>
<div class="page-title-wrapper"> </div>
<div class="columns"> </div>
<div class="my-custom-container"> </div>

If anyone come across this case, kindly help me



You can add like follows in layout XML.

<container name="my.container" as="myContainer" label="My Container" htmlTag="div" htmlClass="my-container">
| improve this answer | |

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.