0

I am trying to change the layout of my catalog_category_view.xml from 2columns-left to 1column, however the change is not reflecting on the FE.

I cleared all available caches. Did I made a mistake?

The file is located here: app/design/frontend/[Vendor]/[namespace]/Magento_catalog/layout/

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
    </body>
</page>
1
  • Confirm any third party extension overide the sme xml file or not. Oct 8, 2021 at 9:31

2 Answers 2

0

The solution is to rewrite the Magento_PageBuilder page_layout XML.

File: app/design/frontend/[Vendor]/[namespace]/Magento_PageBuilder/page_layout/catalog_category_view.xml

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">

</page>
1
  • No, your first solution should work. I'm doing the same thing. You might have a typo. It should be Magento_Catalog and not Magento_catalog. Oct 8, 2021 at 12:19
0

The right path of catalog_category_view.xml file is this one :

app/design/frontend/[Vendor]/[Namespace]/Magento_Catalog/layout/

1
  • As you can see in the main error, this is exactly the file I am changing
    – MLGS
    Oct 9, 2021 at 10:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.