Override default theme colour
  • 27 Sep 2024
  • 1 minute to read

Override default theme colour


Article summary

For custom themes, the default colour for the Mustache template needs to be overridden for the custom theme to apply. This change can be made via the user interface in Totara, or via a hard-code change.

In Totara

To override the default colours via the Totara user interface, follow these steps:

  1. Go to Quick-access menu > Appearance.
  2. Select the theme you wish to edit (e.g. Inspire) from the Appearance block. 
  3. Click Edit site brand (or click the edit icon for a tenant if you are using multitenancy with different themes).
  4. Select the Colours tab. 
  5. Toggle on Use overriding colours
  6. Enter the overriding colours.
  7. Click Save.

Setting overriding colours for the button colour and link colour in the Inspire theme.

In code

If you are experienced with editing Totara code then you can hard-code the change into the background colour default in the server/theme/legacy/templates/core/email_html.mustache template, or override it in the theme's directory.

The Totara Academy has a whole course dedicated to using Dashboards and basic theming in Totara. Here you can learn more on how to customise your site's appearance, see best practice, and give it a go yourself.

Can't find what you're looking for? Contact us at documentation@totara.com. Alternatively, book a call to have a chat about your Totara platform with a dedicated Customer Success Manager.

© Copyright 2024 Totara Learning Solutions. All rights reserved.

Was this article helpful?

What's Next
Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.