app/design/frontend/ExampleCorp/blank/Vendor_Module/layout/catalog_product_view.xml What path would the developer use inside the layout directory of the theme to override the file?
An Adobe Commerce developer wants to override the following Layout XML file in the theme ExampleCorp/orange.
app/design/frontend/ExampleCorp/blank/Vendor_Module/layout/catalog_product_view.xml What path would the developer use inside the layout directory of the theme to override the file?
A . /override/ExampleCorp/blank/catalog_product_view.xml
B . /override/theme/ExampleCorp/blank/catalog_product_view.xml
C . /catalog_product_view.xml
Answer: C
Explanation:
To override a layout XML file from a parent theme, the developer just needs to place the modified file in the same path relative to the layout directory of the child theme. In this case, the file would be app/design/frontend/ExampleCorp/orange/Vendor_Module/layout/catalog_product_view.xml. The override directory is not used for overriding layout files, but for overriding templates and web assets.
Reference: [Layout instructions], [Override templates and layout files]
Latest AD0-E720 Practice Questions with 50 Q&As
Updated Study Material | Instant Download | Detailed Answers and Explanations