Magento 2 – Remove Advanced Search Link from Top Search

magento2

In Magento/Blank an advanced search link appears under the search form by default. I have unsuccessfully been attempting to remove this by referencing the block name for removal. My issue is, not being able to determine what the actual block is called. Turning on path hints and block names was not helpful, nor was looking in the module folder. What am I missing?

<referenceBlock name="advanced.search" remove="true"/>

Best Answer

it's the solution:

<referenceBlock name="advanced-search-link" remove="true"/>

every static links search it inside default.xml of any module our case is in : vendor/magento/module-catalog-search/view/frontend/layout/default.xml

Related Topic