Answer the question
In order to leave comments, you need to log in
How to remove block from Layout Magento 2?
Need to redefine some default theme blocks. The topic has a search
<referenceContainer name="header-wrapper">
<block class="Magento\Framework\View\Element\Template" name="top.search" as="topSearch" template="Magento_Search::form.mini.phtml" />
</referenceContainer>
<referenceContainer name="header-wrapper">
<referenceBlock name="top.search" remove="true"/>
<block class="Magento\Framework\View\Element\Template" name="customtext" template="Magento_Search::customtext.phtml" />
</referenceContainer>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question