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:
parent
f379634eb7
commit
ccf0f15227
24
docs/howto/change_logo_dashboard.rst
Normal file
24
docs/howto/change_logo_dashboard.rst
Normal 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',
|
||||
|
||||
# ...
|
||||
)
|
Loading…
Reference in New Issue
Block a user