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?

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!