Magento 2 - what is the difference between layout and page_layout?
-
21-03-2021 - |
Question
I want to override page_layout file product-full-width.xml
I was trying to override this in
app/design/frontend/Company_Name/Theme_Name/app/design/frontend/Company_Name/Theme_Name/Magento_Theme/page_layout/product-full-width.xml
Solution
page_layout represents the full page, i mean you can declare your own full page without inheriting any master or root or other empty layout.
layout represents the part of the page mostly the html content. You can use this when you want your page to inherit the common contents from the root layout like header, footer etc.
For overright page layout please refere below link :
https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/layouts/layout-override.html
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange