Adding a Logo in Senaite 2.x

Is there a designed way to change the toolbar logo in Senaite 2.x to use a .png file?

In v1.3 the logo could be changed via the ZMI by adding custom logo.png and logo_print.png files. However, in v2.x the toolbar appears to use a vector graphic and is no longer replaceable with a .png file.

We would like to change the logo upon installation of our Add-On if possible, but a TTW or other manual solution would suffice.

in version 2.x you can change the source path of the sidebar logo in the registry.
Just search for toolbar_logo in Site Setup -> [Advanced] Configuration Registry and change it to whatever resource path you need.

3 Likes

can you please specify the dimensions for this custom logo? i’m able to show my png file but its shrunk

@yodaphone , note that when you search for toolbar_logo, as suggested in the previous comment, another record named senaite.toolbar_logo_styles pops-up as well. That is what you are looking for. Add your own CSS styling in there.

The logo can be also changed in the new setup we provide with the recent SENAITE version

You need to type in setup in the address bar manually, because it is not yet providing all of the items that the old bika_setup provided.