QuestionQ13

Adobe Experience Manager Sites

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 app/design/frontend/Vendor/Theme/Magento_LayeredNavigation/layout/override/catalog_category_view_type_layered.xml
  • B app/design/frontend/Vendor/Theme/Magento_LayeredNavigation/layout/catalog_category_view_type_layered.xml
  • C app/design/frontend/Vendor/Theme/Magento_Catalog/layout/catalog_category_view.xml
Explanation

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

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!