Django cms 3.4.1 admin dlogo

浪尽此生 提交于 2019-12-13 06:38:45

问题


I want to change django admin logo. I'm using django cms 3.4.1.

I tried to find logos in:

cms/templates/cms/

 /media/cms/images/cms_toolbar.png

All I found was favicon.jpg in myproject/static/django_cms_style/img. I deleted it, but doesnt work.

I tried with css too. I hide one logo, but logo in admin page and login page, they are still there.

div.cms .cms-toolbar-item-logo a:before {
    display: none;
}

回答1:


CMS uses another app for it's admin styling called djangocms-admin-style. and the top of admin can be customised by overriding the branding.html file seen here;

https://github.com/divio/djangocms-admin-style/blob/master/djangocms_admin_style/templates/admin/inc/branding.html

So if you create admin/inc/branding.html in your project's templates directory you will be able to change the content.



来源:https://stackoverflow.com/questions/41788284/django-cms-3-4-1-admin-dlogo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!