You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: src/guides/v2.3/frontend-dev-guide/themes/theme-inherit.md
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ For comprehensive information about developing theme components, see subsequent
23
23
A parent theme is specified in the child theme `theme.xml` declaration file.
24
24
25
25
Example:
26
-
The Orange theme by SampleCompany inherits from the Magento Blank theme. The inheritance is declared in `app/design/frontend/SampleCompany/orange/theme.xml` as follows:
26
+
The Orange theme by ExampleCorp inherits from the Magento Blank theme. The inheritance is declared in `app/design/frontend/ExampleCorp/orange/theme.xml` as follows:
@@ -130,13 +130,13 @@ You can find out what exactly code changes are required to perform this and othe
130
130
131
131
The layouts processing mechanism does not involve fallback. The system collects [layout](https://glossary.magento.com/layout) files in the following order:
132
132
133
-
1.All modules layout files in sequence defined in `app/etc/config.php` respecting the [component load order]({{ page.baseurl }}/extension-dev-guide/build/module-load-order.html). For each module:
* Layout files for the `base` area: `<module_dir>/view/base/layout/`
136
-
* Layout files for the `frontend` area: `<module_dir>/view/frontend/layout/`
135
+
1. Ancestor theme layouts, starting from the most distant ancestor, recursively until a theme with no parent is reached: `<parent_theme_dir>/<Vendor>_<Module>/layout/`
137
136
138
-
1. Ancestor theme layouts, starting from the most distant ancestor, recursively until a theme with no child is reached: `<parent_theme_dir>/<Vendor>_<Module>/layout/`
139
-
1. Current theme layouts: `<theme_dir>/<Vendor>_<Module>/layout/`
137
+
1. All module layout files in sequence, defined in `app/etc/config.php` respecting the component load order. For each module:
138
+
* Layout files for the `base` area: `<module_dir>/view/base/layout/`
139
+
* Layout files for the `frontend` area: `<module_dir>/view/frontend/layout/`
140
140
141
141
Unlike templates or images, layout can be not only overridden, but also extended. And the recommended way to customize layout is to extend it by creating theme extending layout files.
142
142
@@ -146,13 +146,13 @@ To add an extending layout file:
146
146
147
147
**Example:**
148
148
149
-
SampleCompany decided they should remove the "Report bugs" link from the footer, defined in `<Magento_Theme_module_dir>/view/frontend/layout/default.xml`
150
-
To do this, they added an extending layout in `app/design/frontend/SampleCompany/orange/Magento_Theme/layout/default.xml` :
149
+
ExampleCorp decided they should remove the "copyright" from the footer, defined in `<Magento_Theme_module_dir>/view/frontend/layout/default.xml`
150
+
To do this, they added an extending layout in `app/design/frontend/ExampleCorp/orange/Magento_Theme/layout/default.xml` :
0 commit comments