Brand the portal
Apply your logo, hero image and colours to Servicely through a portal style linked to the portal definition.
Brand the portal when you set up an instance for your organisation. Administrators create a portal style with your colours and link it, with your logo and hero image, to the portal definition.
Before you begin
- You need the
administratorrole. - Have your logo and a hero image ready. Choose a hero image whose left part is one plain colour, so the greeting text over it stays readable.
- Have your colours as hexadecimal values.
- CSS knowledge helps if you need the optional CSS changes.
Steps
-
Go to Administration → Portal → Portal styles and select New. Name the style after your organisation and save.

A new portal style named after the organisation. -
Go to Administration → Configuration → Resources. Upload your logo and hero image as resources. Make the logo resource publicly available.
-
Go to Administration → Portal → Portal definitions and open your portal definition. On the Styles tab, set Base style to your new portal style, Logo resource to your logo and Background image resource to your hero image. Save.

The Styles tab of a portal definition with Base style, Logo resource and Background image resource. -
Open your portal style again and select the Colors tab. Enter your colours in the fields listed in the table below, and save.

The Colors tab of a portal style. -
Optionally, open the CSS tab of the portal style and add the CSS shown below, then save. Change only these rules.
| Field on the Colors tab | What it colours |
|---|---|
| Menu background color | The base of the navigation menu. |
| Menu section background color | Menu sections. |
| Menu subsection background color | Menu subsections. |
| Menu text color | Menu text. |
| Site header text color | Text in the top bar. |
| Site header background color | The top bar. |
| Primary color | The main brand colour. |
| Primary bright color | The bright variant of the primary colour. |
| Secondary color | The second brand colour. |
The tab has more colour fields, such as table header and highlight colours. Start with the fields above and change the others only if you need to.
The CSS below sets the colour and shadow of the greeting text over the hero image, and hides the suggested searches. Review the color and text-shadow values. Then use at most one of the two .sb-portal::before rules: the first positions the hero image to cover the area, the second fills the area to the left of the image with a matching colour.
/* Greeting text over the hero image */
.portal-search__welcome, .portal-search__welcome-question, .suggested_searches_label {
color: #FFFFFF;
text-shadow: 2px 2px 2px #AAAAAA;
}
/* Hide the suggested searches */
.suggested_searches {
color: white !important;
display: none;
}
/* Option 1: position the hero image */
.sb-portal::before {
background-size: cover !important;
background-position: right top !important;
}
/* Option 2: fill behind the hero image with its left-hand colour */
.sb-portal::before {
background-color: #EDF2F8;
}
Result
The instance shows your logo, your hero image on the portal home page and your colours. Without a logo or background image resource, the portal shows the default logo and hero image.
