Which file needs to be created to register the new page layout?
An Adobe Commerce Developer is adding a new page layout to the theme directory within a custom theme.
Which file needs to be created to register the new page layout?
A . app/design/frontend/<VendorName>/<ThemeName>/layouts. xml
B . app/design/frontend/<VendorName>/<ThemeName>/Magento_Theme/layouts.xnil
C . app/design/frontend/<VendorName>/<ThemeName>/Magento_Theme/layout/layouts.xml
Answer: C
Explanation:
To register a new page layout in a custom theme, the developer needs to create a layouts.xml file in the app/design/frontend/<VendorName>/<ThemeName>/Magento_Theme/layout directory. The layouts.xml file should contain the <layout> element with the id, label, and file attributes. The id attribute is used to reference the layout in other layout files, the label attribute is used to display the layout name in the admin panel, and the file attribute is used to specify the path to the layout file
relative to the web directory of the theme. The
app/design/frontend/<VendorName>/<ThemeName>/layouts.xml and app/design/frontend/<VendorName>/<ThemeName>/Magento_Theme/layouts.xml files are not valid and will not work.
Reference: [Create a new page layout], [layouts.xml]
Latest AD0-E720 Dumps Valid Version with 50 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund