Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit bc67d9d

Browse files
authored
Merge pull request #816 from hostep/view_dot_xml_fix
Fixes path to the view.xml file in the theme inheritance topic.
2 parents 6bf9901 + 39eedb7 commit bc67d9d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

guides/v2.0/frontend-dev-guide/themes/theme-inherit.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ subsequent chapters in this guide.
3030

3131
A parent theme is specified in the child theme `theme.xml` declaration file.
3232

33-
Example:
33+
Example:
3434
the Orange theme by OrangeCo inherits from the Magento Blank theme. The inheritance is declared in `app/design/frontend/OrangeCo/orange/theme.xml` as follows:
3535

3636
{% highlight xml %}
3737
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
3838
<title>Orange</title>
39-
<parent>Magento/blank</parent>
39+
<parent>Magento/blank</parent>
4040
<media>
41-
<preview_image>media/preview.jpg</preview_image>
41+
<preview_image>media/preview.jpg</preview_image>
4242
</media>
4343
</theme>
4444
{% endhighlight xml %}
@@ -49,7 +49,7 @@ the Orange theme by OrangeCo inherits from the Magento Blank theme. The inherita
4949

5050
## Override view.xml file
5151

52-
If your theme does not contain a `view.xml` configuration file, it will be inherited from the parent theme. If you add the `<you_theme_dir>/view.xml` file in your theme, it overrides the parent's file.
52+
If your theme does not contain a `view.xml` configuration file, it will be inherited from the parent theme. If you add the `<theme_dir>/etc/view.xml` file in your theme, it overrides the parent's file.
5353

5454
## Override static assets {#theme-inherit-static}
5555

@@ -122,7 +122,7 @@ To do this, they need to add an overriding template for the corresponding module
122122
Note, that the path to the template inside the `templates` directory in the theme corresponds to that in the module.
123123
Having changed the order or elements in the templates, OrangeCo got the minicart look like following:
124124
<p><img src="{{ site.baseurl }}common/images/inherit_mini2.png" alt="In the minishopping cart products are listed above the Go to Checkout button "></p>
125-
You can find out what exactly code changes are required to perform this and other tasks in the <a href="{{page.baseurl}}frontend-dev-guide/templates/template-sample.html">Illustration of customizing templates topic</a>.
125+
You can find out what exactly code changes are required to perform this and other tasks in the <a href="{{page.baseurl}}frontend-dev-guide/templates/template-sample.html">Illustration of customizing templates topic</a>.
126126

127127
## Extend layouts {#theme-inherit-layout}
128128

0 commit comments

Comments
 (0)