diff --git a/docs/advanced_topics/customisation/admin_templates.rst b/docs/advanced_topics/customisation/admin_templates.rst index b0a638780..96dc71e24 100644 --- a/docs/advanced_topics/customisation/admin_templates.rst +++ b/docs/advanced_topics/customisation/admin_templates.rst @@ -43,6 +43,8 @@ To replace the default logo, create a template file ``dashboard/templates/wagtai Custom Project {% endblock %} +The logo also appears on the admin 404 error page; to replace it there too, create a template file ``dashboard/templates/wagtailadmin/404.html`` that overrides the ``branding_logo`` block. + ``branding_favicon`` -------------------- diff --git a/wagtail/wagtailadmin/templates/wagtailadmin/404.html b/wagtail/wagtailadmin/templates/wagtailadmin/404.html index e94fbf98d..34d03c7e2 100644 --- a/wagtail/wagtailadmin/templates/wagtailadmin/404.html +++ b/wagtail/wagtailadmin/templates/wagtailadmin/404.html @@ -13,7 +13,9 @@ {% block furniture %}
- {% include "wagtailadmin/shared/animated_logo.html" %} + {% block branding_logo %} + {% include "wagtailadmin/shared/animated_logo.html" %} + {% endblock %}