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.
<title>%Theme title%</title> <!-- your theme's name -->
48
48
<parent>%vendor_dir%/%parent_theme_dir%</parent> <!-- the parent theme. Example: Magento/backend -->
49
-
</theme>
49
+
</theme>
50
50
{%endhighlight%}
51
51
52
52
If you change the theme title or parent theme information in `theme.xml` after a theme was already [registered](#register_theme), you need to open or reload any {% glossarytooltip 18b930cf-09cc-47c9-a5e5-905f86c43f81 %}Magento Admin{% endglossarytooltip %} page for your changes to be saved in the database.
Copy file name to clipboardExpand all lines: guides/v2.0/frontend-dev-guide/themes/theme-inherit.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ the Orange theme by OrangeCo inherits from the Magento Blank theme. The inherita
40
40
<media>
41
41
<preview_image>media/preview.jpg</preview_image>
42
42
</media>
43
-
</theme>
43
+
</theme>
44
44
{% endhighlight xml %}
45
45
46
46
<divclass="bs-callout bs-callout-info"id="info">
@@ -115,15 +115,15 @@ For example, if you must override the `<Magento_Catalog_module_dir>/view/fronten
115
115
116
116
<u>Example</u>
117
117
By default, according to the module template, in the mini {% glossarytooltip c7ecb18d-cefe-452d-83e2-3c4d5e355db9 %}shopping cart{% endglossarytooltip %} products are listed under the Go to {% glossarytooltip 278c3ce0-cd4c-4ffc-a098-695d94d73bde %}Checkout{% endglossarytooltip %} button:
118
-
<p><imgsrc="{{ site.baseurl }}/common/images/inherit_mini1.png"alt="In the minishopping cart products are listed under the Go to Checkout button"></p>
118
+
<p><imgsrc="{{ site.baseurl }}/common/images/inherit_mini1.png"alt="In the minishopping cart products are listed under the Go to Checkout button"/></p>
119
119
120
120
The order is defined in the `<Magento_Checkout_module_dir>/view/frontend/templates/cart/minicart.phtml` module template. The Blank theme does not override this template.
121
121
OrangeCo decided they want the product list to be displayed before the Go to Checkout button.
122
122
To do this, they need to add an overriding template for the corresponding module in the Orange theme folder:
Note, that the path to the template inside the `templates` directory in the theme corresponds to that in the module.
125
125
Having changed the order or elements in the templates, OrangeCo got the minicart look like following:
126
-
<p><imgsrc="{{ site.baseurl }}/common/images/inherit_mini2.png"alt="In the minishopping cart products are listed above the Go to Checkout button"></p>
126
+
<p><imgsrc="{{ site.baseurl }}/common/images/inherit_mini2.png"alt="In the minishopping cart products are listed above the Go to Checkout button"/></p>
127
127
You can find out what exactly code changes are required to perform this and other tasks in the <ahref="{{ page.baseurl }}/frontend-dev-guide/templates/template-sample.html">Illustration of customizing templates topic</a>.
<title>%Theme title%</title> <!-- your theme's name -->
48
48
<parent>%vendor_dir%/%parent_theme_dir%</parent> <!-- the parent theme. Example: Magento/backend -->
49
-
</theme>
49
+
</theme>
50
50
{%endhighlight%}
51
51
52
52
If you change the theme title or parent theme information in `theme.xml` after a theme was already [registered](#register_theme), you need to open or reload any {% glossarytooltip 18b930cf-09cc-47c9-a5e5-905f86c43f81 %}Magento Admin{% endglossarytooltip %} page for your changes to be saved in the database.
Copy file name to clipboardExpand all lines: guides/v2.1/frontend-dev-guide/themes/theme-inherit.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ the Orange theme by OrangeCo inherits from the Magento Blank theme. The inherita
40
40
<media>
41
41
<preview_image>media/preview.jpg</preview_image>
42
42
</media>
43
-
</theme>
43
+
</theme>
44
44
{% endhighlight xml %}
45
45
46
46
<divclass="bs-callout bs-callout-info"id="info">
@@ -113,15 +113,15 @@ For example, if you must override the `<Magento_Catalog_module_dir>/view/fronten
113
113
114
114
<u>Example</u>
115
115
By default, according to the module template, in the mini {% glossarytooltip c7ecb18d-cefe-452d-83e2-3c4d5e355db9 %}shopping cart{% endglossarytooltip %} products are listed under the Go to {% glossarytooltip 278c3ce0-cd4c-4ffc-a098-695d94d73bde %}Checkout{% endglossarytooltip %} button:
116
-
<p><imgsrc="{{ site.baseurl }}/common/images/inherit_mini1.png"alt="In the minishopping cart products are listed under the Go to Checkout button"></p>
116
+
<p><imgsrc="{{ site.baseurl }}/common/images/inherit_mini1.png"alt="In the minishopping cart products are listed under the Go to Checkout button"/></p>
117
117
118
118
The order is defined in the `<Magento_Checkout_module_dir>/view/frontend/templates/cart/minicart.phtml` module template. The Blank theme does not override this template.
119
119
OrangeCo decided they want the product list to be displayed before the Go to Checkout button.
120
120
To do this, they need to add an overriding template for the corresponding module in the Orange theme folder:
Note, that the path to the template inside the `templates` directory in the theme corresponds to that in the module.
123
123
Having changed the order or elements in the templates, OrangeCo got the minicart look like following:
124
-
<p><imgsrc="{{ site.baseurl }}/common/images/inherit_mini2.png"alt="In the minishopping cart products are listed above the Go to Checkout button"></p>
124
+
<p><imgsrc="{{ site.baseurl }}/common/images/inherit_mini2.png"alt="In the minishopping cart products are listed above the Go to Checkout button"/></p>
125
125
You can find out what exactly code changes are required to perform this and other tasks in the <ahref="{{ page.baseurl }}/frontend-dev-guide/templates/template-sample.html">Illustration of customizing templates topic</a>.
0 commit comments