To remove the default Wishlist and Compare Products blocks on a category page with layered
navigation,
the
developer
should
place
the
modification
in
the
app/design/frontend/Vendor/Theme/Magento_LayeredNavigation/layout/catalog_category_view_t
ype_layered.xml file. This file is specific to the category pages with layered navigation and will
override the default layout file from the Magento_LayeredNavigation module. The modification
should use the tag with the name attribute specifying the name of the block and
the remove attribute set to true. For example:
<referenceBlock
name=“catalog.compare.sidebar”
remove=“true”/>
<referenceBlock
name=“wishlist_sidebar” remove=“true”/>
The
app/design/frontend/Vendor/Theme/Magento_LayeredNavigation/layout/override/catalog_categor
y_view_type_layered.xml file is not valid and will not work, as it is not a valid override path. The
app/design/frontend/Vendor/Theme/Magento_Catalog/layout/catalog_category_view.xml file is not
specific to the category pages with layered navigation and will affect all category pages. Reference:
[Layout override], [Remove an element]