Magento – Magento 2: How to set default layout to 1column
magento-2.1magento2
I have no idea where to set the default layout in creating a page in the backend where I want it to set the layout to "1 Column" instead of the default value "Empty".
Anyone have the idea?
Best Answer
You have to override UiComponent xml file and add this code into design fieldset >> field:
I've discovered what is causing the problem, it seems that when importing the project from magento 1.9 to 2.1, each individual product in each store was imported with a migration_design of '2 columns with left bar' causing the xml page layout being overriden by the cms product option.
If I edit a concrete product in a concrete store and change the migration design to 'no layout updates' then, this product have a 1 column layout in the store I changed it, if with this product I go to another store then it is displayed in 2 columns again.
The solution is edit the database, changing all the products in all the stores to 'no layout updates'.
Best Answer
You have to override UiComponent xml file and add this code into design fieldset >> field: