Remove advanced search link from top.search in Magento 2

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


The correct path to folder is

app/design/frontend/ThemeDirectory/YourTheme/default.xml

Open default.xml & Put this code anywhere after

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

It will remove the advanced - search link from ALL THE PAGES.

Tags:

Magento2