Skip to content

Instantly share code, notes, and snippets.

@vasilii-b
Last active February 11, 2020 12:12
Show Gist options
  • Save vasilii-b/c48d42a170d71603e1d4c9df7b1c4ff7 to your computer and use it in GitHub Desktop.
Save vasilii-b/c48d42a170d71603e1d4c9df7b1c4ff7 to your computer and use it in GitHub Desktop.
Look what XML file changes the layout type for a page. Sometimes this is done without intention, but can break the store's desired layout. E.g. for the ckeckout page the default page layout is "checkout". When this get changed to "1column" magic happens.
# command below looks for `checkout_index_index.xml` files that changes the layout
grep -r -i --include \*checkout_index_index.xml "layout="
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment