I'm using Magento 2.02 I've created my own theme called 'cff', which is based on Luma.
I'm trying to remove the
catalog.compare.link block in
The layout for this block seems to be defined in
And if I add
<referenceBlock name="catalog.compare.link" remove="true" />
in that file, then as expected the 'Compare Products' text disappears from the top.links block.
However, I know I'm not supposed to change vendor files. So I'm looking for the correct folder in which to create my own
default.xml file to place the remove code:
I've looked everywhere in the documentation and online but cannot find this info. I've tried several locations, none of them work. I thought this one should work but it doesn't either:
Please can someone tell me where the override layout should go?
This is the code inside my overriding layout
<?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceBlock name="catalog.compare.link" remove="true" /> </body> </page>