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

Commit 5d415e1

Browse files
Merge branch 'develop' of https://github.com/magento/devdocs_internal into am_symlinks
merged with develop
2 parents 8f7c78e + 38c63c9 commit 5d415e1

File tree

2 files changed

+24
-7
lines changed

2 files changed

+24
-7
lines changed

guides/v2.0/frontend-dev-guide/themes/admin_theme_create.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This topic describes how to create your custom theme for Magento Admin, referenc
2020

2121
[Set]({{page.baseurl}}config-guide/cli/config-cli-subcommands-mode.html) your Magento application to the developer [mode]({{page.baseurl}}config-guide/bootstrap/magento-modes.html). The application mode influences the way static files are cached by Magento.
2222

23-
## Create an Admin theme
23+
## Overview
2424

2525
To create a custom Admin theme, take the following steps:
2626

@@ -32,10 +32,10 @@ To create a custom Admin theme, take the following steps:
3232

3333
Each step is described further.
3434

35-
### Create a theme directory {#create_dir}
35+
## Create a theme directory {#create_dir}
3636
In the `app/design/adminhtml` directory create a new `<Vendor>/<admin_theme>` directory.
3737

38-
### Add a declaration `theme.xml` {#declare_theme}
38+
## Add a declaration `theme.xml` {#declare_theme}
3939

4040
In the theme directory, add `theme.xml` containing at least the theme name and the parent theme name (if the theme [inherits]({{page.baseurl}}frontend-dev-guide/themes/theme-inherit.html) from one). We recommend you to inherit from the default Magento Admin theme: `Magento/backend`.
4141

@@ -49,9 +49,11 @@ Configure it using the following example (replace placeholders with your theme i
4949
<parent>%vendor_dir%/%parent_theme_dir%</parent> <!-- the parent theme. Example: Magento/backend -->
5050
</theme>
5151

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 Magento Admin page for your changes to be saved in the database.
53+
5254
{%endhighlight%}
5355

54-
### Add `registration.php` {#add_registry}
56+
## Add `registration.php` {#add_registry}
5557
In your theme directory, create a `registration.php` file.
5658
In this file, add the following code, having replaced placeholders with your theme information:
5759

@@ -68,16 +70,21 @@ In this file, add the following code, having replaced placeholders with your the
6870
);
6971
{%endhighlight%}
7072
71-
### Optionally add `composer.json` {#make_composer}
73+
## Optionally add `composer.json` {#make_composer}
7274
See the [Make your theme a Composer package (optional)]({{page.baseurl}}frontend-dev-guide/themes/theme-create.html#fedg_create_theme_composer)
7375
7476
75-
### Admin theme logo (optional) {#logo}
77+
## Admin theme logo (optional) {#logo}
7678
7779
In the default `Magento/backend` theme `lib/web/images/magento-logo.svg` is used as theme logo.
7880
To override it, in your theme directory, create a `web/images` sub-directory, and add your custom file named `magento-logo.svg`.
7981
If you want to use the file with other name and/or format, you need to additionally declare it as described in [Declaring theme logo]({{page.baseurl}}frontend-dev-guide/themes/theme-create.html#logo_declare).
8082
83+
84+
## Theme registration {#register_theme}
85+
86+
Once you open the Magento Admin (or reload any Magento Admin page) having added the theme files to the files system, your theme gets registered and added to the database.
87+
8188
## Apply the Admin theme
8289
8390
See the [Apply a custom Admin theme topic]({{page.baseurl}}frontend-dev-guide/themes/admin_theme.html).

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ After you create a directory for your theme, you must create `theme.xml` contain
6565
</theme>
6666
{% endhighlight %}
6767

68+
<div class="bs-callout bs-callout-info" id="info">
69+
<p>If you update theme.xml later</p>
70+
</div>
71+
72+
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 Magento Admin page for your changes to be saved in the database.
6873

6974
## Make your theme a Composer package (optional) {#fedg_create_theme_composer}
7075

@@ -247,7 +252,12 @@ To learn more about theme layouts, refer to the <a href="{{page.baseurl}}fronten
247252

248253

249254
## What's next {#next}
250-
See the [Apply and configure a theme in Admin]({{page.baseurl}}frontend-dev-guide/themes/theme-apply.html) topic.
255+
256+
### Theme registration {#register_theme}
257+
Once you open the Magento Admin (or reload any Magento Admin page) having added the theme files to the files system, your theme gets registered and added to the database.
258+
259+
### Applying a theme
260+
For information on how to apply the theme for the storefront, see the [Apply and configure a theme in Admin]({{page.baseurl}}frontend-dev-guide/themes/theme-apply.html) topic.
251261

252262
## See also
253263

0 commit comments

Comments
 (0)