Magento 2 disable product compare

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_Catalog.

And in the Magento_Catalog folder, create another directory called layout.

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

In the default.xml file, insert:

Clear the cache and you’re done.

Leave a Reply

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