0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

Create change_logo_dashboard.rst

This commit is contained in:
Gilson Filho 2014-11-03 11:13:43 -02:00
parent f379634eb7
commit ccf0f15227

View File

@ -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 %}
<img src="{{ STATIC_URL }}images/custom-logo.svg" alt="Custom Project" width="80" />
{% 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',
# ...
)