2

Magento 2.1.7

Just only want to change layout structure of a catalogsearch/result/index module, from 2columns-left to 1column.

For which i copied layout file and made necessary changes and put it into the below location - /app/design/frontend/<Namespace>/<ThemeName>/Magento_CatalogSearch/layout/catalogsearch_result_index.xml

Let me know please if i am doing any thing wrong

Thanks in advance

1

You are on the right track. You just have to create a catalogsearch_result_index.xml (as you listed that you did above), then change the layout attribute for the page element.

<?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>

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.