Try our conversational search powered by Generative AI!

Custom "Visitor Groups" styling in Dashboards interface for CMS


Hi Episerver support,

We're having a hard time figuring out how we can apply custom styling to the Visitor Groups page in the CMS Dashboards interface. 

We have a custom styling module which loads succesfully into the "Edit" part of the CMS Dashboard, so that part works as intended.

It has however been challenging for us to discover how to get this module into the "Admin" and "Visitor Groups" parts of the CMS Dashboard.

We are trying to solve this issue with the standard styling of visitor groups:

The styling unfortunately means that it is impossible to select any of the criteria not shown in the visible part of the box. Therefore, we wanted to override the styling to apply the following:

#criteriaCategoryContainer.epi-criteriaCategoryContainer {

Which, when we do it directly through Developer Tools, appears to solve the issue. However, as mentioned, getting this custom styling into the Visitor Groups dashboard has proven troublesome. The documentation ( doesn't seem to make any mention of the "Admin" or "Visitor groups" parts of the dashboard, and the other people asking the same question online go without an answer, e.g.: 

We tried the approach outlined here as well: 

Which stipulates that custom styling can be included without being in a 'module', but this approach has not worked for us at all so far. 

The only approach we haven't tried is setting up a complete custom theme. We are wary of this approach since it would make upgrading Episerver harder, as we would need to maintain that custom theme ourselves, instead of just overriding specific stylings as needed. 

Episerver CMS version:

Edited, Sep 04, 2020 7:31

To include a stylesheet in admin mode, just include the following in your module.config:

    <add name="navigation" path="Styles/Styles.css" resourceType="Style"/>

Make sure to use navigation, and place the file in /ClientResources/Styles/Styles.css

Verify that the CSS file gets loaded. You could do this using F12 dev tools in Chrome, and look at the Sources-tab.

I just tested this. The css file gets loaded, and the style is applied.

Edited, Sep 04, 2020 9:28

Hi Tomas,

Thanks a lot for your quick response. It did indeed work. I did the following:

  • Created a 'module.config' file in the root of the project with the following content:
<?xml version="1.0" encoding="utf-8"?>
    <add name="navigation" path="Styles/custom-styles.css" resourceType="Style" />
  • Created a "ClientResources" folder in the root (same root as the above 'module.config') with a "Styles" subfolder containing the .css file

  • Finally I verified that the script was indeed loaded, by using Chrome Developer Tools:

Thanks again!

Edited, Sep 04, 2020 12:50
Tomas Hensrud Gulla - Sep 04, 2020 12:52
Happy to help - glad it worked out! :-)
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.