An Adobe Commerce developer needs to remove the default Wishlist and Compare Products blocks from a category page that uses layered navigation.
Where should this modification be added, assuming the developer wants to make only this change?
A theme extending layout file under Magento_LayeredNavigation/layout for catalog_category_view_type_layered.xml targets only the layered-navigation category-page handle. Extending that layout can remove the relevant blocks without replacing the module layout or affecting all category pages. Adobe Commerce recommends extending a layout by placing the matching file in <theme_dir>/<Namespace>_<Module>/layout/.
Magento_LayeredNavigation/layout
catalog_category_view_type_layered.xml
<theme_dir>/<Namespace>_<Module>/layout/
Community Discussion