Magento 2 – Difference Between Layout and Page Layout

magento2

As I dig deeper in Magento 2, I noticed that there are layout and page_layout file? What are the differences between the two?

Best Answer

Well if i put this in simple words than

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. (only use, if you want to completely customize your own full page.)

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 etc.

Related Topic