Customizing Header and Sign-In Logo


#1

Is there a way to customize the logo on the header and the sign-in page?


#2

for the mainpage logo:

Create folder like ‘/opt/indico/COMPANY/static’ and place your png in there

add
LOGO_URL = '/static/custom/COMPANY_LOGO.png’
CUSTOMIZATION_DIR = '/opt/indico/COMPANY/'
in the /opt/indico/etc/indico.conf file

restart indico…


#3

Unfortunately we don’t use the LOGO_URL on the login page:

<img class="header-logo" src="{{ indico_config.IMAGES_BASE_URL }}/logo_indico.png">

We could easily change it to also take the LOGO_URL into account, but depending on the logo it might look bad because we currently set a 100px height on the logo of the login page - so if your logo is smaller, it’d be scaled up. But it sounds like something we should do nonetheless.

Edit: Actually, we use different logos for the normal one (monochrome) and the one used e.g. on the login or error pages (colored). So we’d probably need to add a separate setting for this…


#4

Hi dkfz2018,
I tried your code “as is” but didn’t worked.
I slightly changed it and it works now:

Create folder like <indico-instance>/COMPANY/custom/files/ and place your png in there (COMPANY_LOGO.png)

add

LOGO_URL = '/static/custom/files/COMPANY_LOGO.png’
CUSTOMIZATION_DIR = '<indico-instance>/COMPANY/custom/'

in the <indico-src>/indico/indico.conf file

restart Indico.