Magento 2 Disable advanced search link in topmenu

If you’re going to override the Magento theme then I really would advise against modifying  the Magento core files. A better practice is to create your own theme and override all the files you need. This way you can update Magento with much less worries. How you create your own theme is for another episode.

Supposing you have created your own theme you should have a directory structure that looks something like this:

In my case, the theme is called desktop.

In the desktop folder, create a directory called Magento_Search.

And in the Magento_Search folder, create another directory called layout

Now, with nano, create a file called default.xml

So if you were paying attention you now have:

In the default.xml file, insert:

Clear the cache and you’re good to go.

Leave a Reply

Your email address will not be published. Required fields are marked *