Custom Logo

94 views
Skip to first unread message

Redwan Hasif Alvi

unread,
Mar 7, 2023, 9:25:01 AM3/7/23
to rapidpro-dev
Hi,

I am trying to change the RapidPro logo in the splash page to a custom one; but I am unable to do so.

I have tried playing around with the settings_common.py file in the BRANDING section ( https://github.com/rapidpro/rapidpro/blob/main/temba/settings_common.py#L326-L356), even changed the files in static/brands/rapidpro directory. And although I am able to change the splash image and the favicon, changing the logo.png is not doing anything.

How do I change that logo? Thank you.

change_logo.png

Rudi Giesler

unread,
Mar 7, 2023, 10:00:08 AM3/7/23
to Redwan Hasif Alvi, rapidpro-dev
Hi

I think the correct setting to change is `logo`, and the default image is `static/images/logo-dark.svg`, not anything in `static/brands/rapidpro`. You might also need to run `./manage.py collectstatic` after changing things for the static files to be copied to the `sitestatic` path.

I see in some places there is hardcoding of the image (I'm not sure what this template is used for), so you might need to replace the image instead of just changing it in the settings: https://github.com/rapidpro/rapidpro/blob/main/templates/public/public_frame.haml#L15

Are those the things you tried and it didn't work?

Regards,
Rudi

--
You received this message because you are subscribed to the Google Groups "rapidpro-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rapidpro-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rapidpro-dev/288e35e6-8c91-4b01-95a9-c183023d9483n%40googlegroups.com.

Redwan Hasif Alvi

unread,
Mar 7, 2023, 10:48:25 AM3/7/23
to rapidpro-dev
Hi Rudy,

Thank you so much for your response.

I should mention that I am working with v7.2.4 stable release (https://github.com/rapidpro/rapidpro/tree/v7.2.4) instead of the latest code base. I apologize for failing to mention this in the previous text.

And with that being said, in v7.2.4, I did not find any 'logo-dark.svg' in 'static/image'. I did not find the 'templates/public/public_frame.haml' file in templates either, although there is a 'frame.haml' in the templates directory. However, it does not contain any reference to any logo image (unless i am mistaken).

I checked for the files and directories you mentioned in v7.4.2 as well, but did not find any of it unfortunately. I am only working with the stable releases.

It will be of immense help if you could shed some light onto these findings.

Rudi Giesler

unread,
Mar 7, 2023, 10:54:51 AM3/7/23
to Redwan Hasif Alvi, rapidpro-dev
Ah I see. In that case, it seems like `static/brands/rapidpro/logo.png` is the correct path.

Unfortunately I don't know enough about the frontend setup to help you further then. The only thing I can suggest is to ensure you've run `collectstatic` to make sure that the static files are correct and in the correct places.

Regards,
Rudi

Redwan Hasif Alvi

unread,
Mar 7, 2023, 11:15:10 AM3/7/23
to rapidpro-dev
Thank you Rudy. It, at the very least, confirms that I did not spend the last couple of hours looking at the wrong path :)

Yes, I have run 'collectstatic' to make sure that the static files are all up and about.

Still hoping someone has an answer for this.

Redwan Hasif Alvi

unread,
Mar 8, 2023, 10:53:42 PM3/8/23
to rapidpro-dev
Hi all,

I haven't had any luck figuring this out. Is there a way to change the logo?

I know it is possible, but none of the things I am trying seems to work.

Pedro Valentim Leite

unread,
Mar 10, 2023, 7:20:16 AM3/10/23
to rapidpro-dev
Hi,

as far as I know, you`ll have to build your own version of the Docker image in order to customize the branding variables, then your Workspace/Organization should use the same branding key as in the Django settings.

Best regards and good luck!

Aly Radwan

unread,
Aug 1, 2023, 8:22:28 AM8/1/23
to rapidpro-dev
Do you find any way to do this? 
Reply all
Reply to author
Forward
0 new messages