0
<main id="maincontent" class="page-main">
.....
</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.

5

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.