ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 2 - AD0-E720 discussion

Report
Export

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
Answers
A.
/override/ExampleCorp/blank/catalog_product_view.xml
B.
/override/theme/ExampleCorp/blank/catalog_product_view.xml
Answers
B.
/override/theme/ExampleCorp/blank/catalog_product_view.xml
C.
/catalog_product_view.xml
Answers
C.
/catalog_product_view.xml
Suggested 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]

asked 02/10/2024
Igor Komino
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first