I added div(container) in every page except homepage like this
<main>
<div class="myclass">
all content here
</div>
</main>
I tried update layout from admin and
cms_index_index.xml
file by usingremove
tag but doesn't work for me. I only need to remove that container class or div not all child blocks & containers
Let's consider my container in my empty.xml
(override).
<container name="container_name" htmlClass="myclass" htmlTag="div"/>
It's come as I want but I don't want it on homepage
How can I remove that container from homepage.
Best Answer
You can remove class by this way:
Go to your
admin panel > cms home page
. There is one tabDESIGN
and in this tab add yourXML
code inLayout Update XML area
.Keep empty so it will remove the class.
Run command: