简体   繁体   中英

Remove SonataAdmin logo

I am trying to remove SonataAdmin logo. 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.

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 :

 # 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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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