In Magento 2, the layout file responsible for rendering CMS pages is cms_page_view.xml
.
This layout file is typically located in:
app/design/frontend/<Vendor>/<Theme>/Magento_Cms/layout/cms_page_view.xml
for custom themes.vendor/magento/module-cms/view/frontend/layout/cms_page_view.xml
in the Magento core module if you’re using the default Magento theme or need to override it.
This layout file determines the structure and contents of the CMS pages, such as which blocks are included and their positions. If you need to customize the layout of CMS pages, you can create or modify this file within your custom theme’s or module’s directory.
Did this post help you?
Tutsplanet brings in-depth and easy tutorials to understand even for beginners. This takes a considerable amount of work. If this post helps you, please consider supporting us as a token of appreciation:
- Just want to thank us? Buy us a Coffee
- May be another day? Shop on Amazon using our links.
Your prices won't change but we get a small commission.
Leave a Reply