In the official M2 docs we have this quote

Changing handle inheritance. For example, you should not change the page type parent handle.

Pulled from here M2 Frontend Dev Docs

By this I understand you should not make changes like 1column -> 3columns. If this means something else please correct me. If I'm right, what are the reasons for which this is bad practice?

What is the recommended way to change the layout of a page? If this is considered a bad practice?


Found it.

Example: Change the layout of Advanced Search page from default “1-column” to “2-column with left bar”. To do this, extend catalogsearch_advanced_index.xml in your theme by adding the following layout:

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

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.