Page layouts and containers in Magento
Learn Magento page layouts and containers with XML including empty xml 1column 2columns and custom page layout creation.
Lesson Content
Let’s find out how pages are built in Magento with XML. Let’s go to the vendor/magento/module-theme directory, which is the Magento_Theme module.
All layout XML is located in in the view directory, and then in one of either base, default or adminhtml, depending on which area of Magento is being modified. The base directory affects all layouts, so let’s go into that directory. Next, we’ll go into the page_layout directory and you’ll notice a sole empty.xml file.
vendor/magento/module-theme/view/base/page_layout/empty.xml
This is the file that all layouts in Magento us...
Join the discussion!
Comments
Want to comment on this lesson?
Enroll in this course to leave comments.