简体   繁体   English

删除SonataAdmin徽标

[英]Remove SonataAdmin logo

I am trying to remove SonataAdmin logo. 我正在尝试删除SonataAdmin徽标。 I don't want any picture. 我不要照片。 Every param that I put in my .yml file I get a broken picture icon on my admin view. 我在.yml文件中放入的每个参数,在管理视图中都会出现一个损坏的图片图标。

I have checked the conifguration and there is no wirtten documentation of how to hide logo. 我已经检查了配置,并且没有关于如何隐藏徽标的书面文件。

   sonata_admin:
      templates:
          user_block: '@AdminTemplates/user_block.html.twig'
      title: My App
      title_logo: /bundles/sonataadmin/logo_title.png   //-- this part

Put your logo file here 将您的徽标文件放在这里

src/AppBundle/Resources/public/images/your_logo.png

install asset : 安装资产:

$ php bin/console assets:install

And I think you have just to delete the first slash / in the title_logo : 而且我认为您只需删除title_logo中的第一个斜杠/:

 # app/config/config.yml
 sonata_admin:
      templates:
          user_block: '@AdminTemplates/user_block.html.twig'
      title: My App
      title_logo: bundles/app/images/your_logo.png   //-- this part

The point here is to make a transparent image , so you can't see the logo, otherwise , there is no way to do it . 这里的重点是制作透明图像,因此您看不到徽标,否则就无法这样做。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM