<main id="maincontent" class="page-main">

I need to replace class and id here also can we change a whole tag like main to section or something else. please let me know.


If you add this to your default.xml layout file.

<referenceContainer name="main.content" htmlTag="main" htmlId="add-ID" htmlClass="new-class-name"/>

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.