1

I did not find the solution.. Can anyone help me?

I want to change the default 1 column layout to 2-columns-right layout.

2 Answers 2

5

you have to change inside layout xml file,

if you want to display product details page 2column left then change file is catalog_product_view.xml

set layout value layout="2columns-right" inside <page> node.

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-right" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
1

If you want it for cms pages. You can do it by visiting magento backend. Then go to cms >> pages >> select the page. Then from the left bar select the design tab. Now from the "Layout" drop down on the right select the 2 columns right.

3
  • okay. and is there also a global method? Apr 20, 2016 at 13:21
  • NO ,that only apply on that particular cms page
    – Amit Bera
    Apr 20, 2016 at 13:54
  • I think what @WolfgangMüller means to ask if there is a global method to apply changes like this to all pages, and yes, there is, as given in the answer by Rakesh; via XML update.
    – Asitis
    Jul 12, 2016 at 10:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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