Magento 2 Custom Category Page – How to Customize Layout

categorylayoutmagento-2.0magento2

Could anyone let me know where the Category page layout XML is located, so I can created a custom layout and override the 'out of the box' layout?

Best Answer

There's several layout files available for the category page in Magento 2, the main files being located under app/code/Magento/Catalog/view/frontend/layout folder:

  • catalog_category_view.xml
  • catalog_category_view_type_default.xml adds the left side navigation bar
  • catalog_category_view_type_default_without_children.xml does not add the left side navigation bar
Related Topic