I'm trying to create a custom layout based on 2columns-left.xml. The layout was created correctly and I can select it from the Admin. This is what I did so far:
I created the
layouts.xml
fileTHEME/Magento_Theme/layouts.xml
<layout id="customlayout"> <label translate="true">Custom Layout</label> </layout>
And then I created the
customlayout.xml
fileTHEME/Magento_Theme/page_layout/customlayout.xml
With the same content as:
vendor/magento/module-theme/view/frontend/page_layout/2columns-left.xml
The problem is that the layout has only 1 column, instead of 2columns-left, why?