Logo and Favicon Icons Reverts to Default after `tutor config save`

I understand that to replace the logo.png and favicon.ico files, I need to place them in the tutorindigo/templates/indigo/lms/static/images directory. After replacing these files, I follow this sequence of commands:

tutor config save
tutor local stop
tutor images build openedx
tutor local start -d

However, despite following this sequence, the icons revert to the default ones. Through some debugging, I discovered that the icons reset to default when I run tutor config save.

I have a theory: I’m using a custom frontend-app-authn through a plugin, and this might be causing the icons to revert to the default ones.

Any help with this would be greatly appreciated.

This is a screenshot of my terminal

I’m using catimg to display the icons in the terminal. I replace the default images through an SFTP application and then run the tutor config save command.

When I run the catimg command again, it’s clear that the icons have reverted to their original form.

Any help with this would be greatly appreciated. Thank you!

Hi @Hamza,
When you run tutor config save everything in your env directory will be overwritten. If you want to go the indigo way, you will have to fork the plugin and customize its templates. Or you can try our tutor-contrib-branding plugin which will handle these things for your without forking.

Had this issue for a while, every time I updated, the defaults would come back.
The solution I do is below:

cd ~/.local/share/tutor/env/build/openedx/themes/indigo/cms/static/images/
cp /home/ubuntu/favicon.ico .
cp /home/ubuntu/studio-logo.png .
cd ~/.local/share/tutor/env/build/openedx/themes/indigo/lms/static/images/
cp /home/ubuntu/favicon.ico .
cp /home/ubuntu/logo.png .
tutor images build openedx
tutor local start -d

@Rick_Sauer thanks for your response. I have already tried this and it is not working.
@Andres.Aulasneo I was working with you proposed solution. Tutor contib branding. I installed it in my server, but there were alot of missing icons and images. Also, in the theme folder there was no configuration for cms.
Anyways, when I moved back to ingo using tutor local do settheme indigo the desired logo and favicon were picked up which were replaced.

This is sort of hack solution for me.

Hi @Hamza,
Tutor contrib branding does not provide any icon out of the box, you have to set them either with BRANDING_LMS_IMAGES and BRANDING_CMS_IMAGES or by using BRANDING_THEME_REPOS. In any case, remember to rebuild your openedx image and restart your containers to apply the changes.

1 Like

@Andres.Aulasneo
Thank you for clarity on that. I will definitely try this. This seems to make the theme related customization very easy.