Core layouts and blocks in Magento
Learn Magento layout XML, containers, and blocks to control core page structure, content rendering, and block types.
Lesson Content
Now that we know how the overall skeleton of pages is formed, we can go a bit deeper and learn about layouts & blocks. Since page layouts form the overall skeleton with containers, regular layouts place the actual content blocks within those containers.
Layout XML files are created within layout directories rather than page_layout directories.
Still in the Magento_Theme module, let’s open up its layout directory, as this is where the core layout of Magento’s pages is defined.
The default.xml file is loaded for all layouts in Magento. You’ll notice that it can also build on top...
Join the discussion!
Comments
Want to comment on this lesson?
Enroll in this course to leave comments.