diff --git a/docs/howto/change_logo_dashboard.rst b/docs/howto/change_logo_dashboard.rst new file mode 100644 index 0000000000..4fa386d770 --- /dev/null +++ b/docs/howto/change_logo_dashboard.rst @@ -0,0 +1,24 @@ +Change Logo in Dashboard +======================== + +In your projects with Wagtail, maybe need switch the default logo to other image. For this, you need override the block ``logo_admin``:: + + {% extends "wagtailadmin/base.html" %} + + {% block admin_logo %} + Custom Project + {% endblock %} + + +Save this in your app, for example, ``dashboard`` to ``dashboard/templates/wagtailadmin/base.html`` and register before ``wagtailadmin``:: + + INSTALLED_APPS = ( + # ... + + 'dashboard', + + 'wagtail.wagtailcore', + 'wagtail.wagtailadmin', + + # ... + ) diff --git a/wagtail/wagtailadmin/templates/wagtailadmin/base.html b/wagtail/wagtailadmin/templates/wagtailadmin/base.html index c9571c40b6..1da6b4f97f 100644 --- a/wagtail/wagtailadmin/templates/wagtailadmin/base.html +++ b/wagtail/wagtailadmin/templates/wagtailadmin/base.html @@ -4,7 +4,12 @@ {% block furniture %}