CSS

Updated on March 19, 2019
Download PDF

Brief Overview

Cascading Style Sheets (CSS) allow you to customize the look and feel of a balloon including the layout, colors, and fonts.

The CSS feature in WalkMe allows for full customization of Walk-Thrus and Walk-Thru steps. Before entering the rules in the Customize CSS window, you can check if the CSS rule works by inserting it in the Custom CSS tab in the Flow Tracker.

Use Cases

CSS use cases include the following:

  • Insert an image or logo in a balloon
  • Customize a Welcome ShoutOut for your site
  • Change the width of or remove arrows from a balloon
  • Change the text of a Next button

How It Works

CSS is a style sheet language used for describing the formatting of a document written in a markup language. When writing CSS, you will need to refer to the different components, or elements of balloons found in WalkMe apps. When typing into the Custom CSS window, WalkMe displays auto-complete options for selectors, properties, and values.

CSS can be added locally via the Rich Text Editor, or globally from the Customize menu accessed in the Admin Bar. Before entering the rules in the Customize CSS window, test it in the Custom CSS tab in the Flow Tracker.

Configuring Balloon Components

Each Balloon includes a number of components (elements) that can be customized with CSS. For example, you can target the title section of a balloon by using this class: .walkme-custom-balloon-title (see below for a full list of classes).

Global vs. Local Rules For Balloons

CSS can be applied globally or locally. Local CSS overrides all other design and can be applied from the Rich Text Editor in a balloon’s Interaction menu:

Global CSS can be added in the Customize menu:

Using the local CSS editor (Rich Text Editor) makes it easy to customize a single ShoutOut. If you are customizing a single ShoutOut on the global level, you must enter the ShoutOut’s ID* before the class that identifies the balloon section (i.e., on the local level: .walkme-custom-balloon-title; on the global level: #walkme-balloon-XXXXXXX.walkme-custom-balloon-title).

*Pro-Tip: For Walk-Thrus, the ID can be found in the Walk-Thru Settings Menu under Advanced Settings:

Using !Important

By default, the WalkMe theme design overrides any other design changes to a balloon or Walk-Thru. In order for CSS to be applied, the CSS rule must contain !important ensure that it overrides the default styling.

For example:
#walkme-balloon-1760356 .walkme-custom-balloon-title {
color: #000 !important;
}

Configurable Components

div Editable Attributes
1 .walkme-custom-side-border This element is the left side balloon border. You’ll be able to edit:

  • display
  • background
2 .walkme-custom-balloon-separator This element is the separator on the bottom third of the balloon. You’ll be able to edit:

  • display
3 .walkme-custom-balloon-title This element is the balloon header. You’ll be able to edit:

  • text-align
  • font-color
  • font-size
  • font-family
  • padding
  • margin
4 .walkme-custom-balloon-content This element is the balloon text. You’ll be able to edit:

  • text-align
  • font-color
  • font-size
  • font-family
  • padding
  • margin
5 .walkme-custom-balloon-subtext This element is step number. You’ll be able to edit:

  • text-align
  • font-color
  • font-size
  • font-family
  • display
6 .walkme-custom-balloon-back-button This element is the back button. You’ll be able to edit:

  • font-color
  • font-size
  • font-family
  • width
  • height
  • background
  • border-radius
7 .walkme-custom-balloon-next-button This element is the next button. You’ll be able to edit:

  • font-color
  • font-size
  • font-family
  • width
  • height
  • background
  • border-radius
8 .walkme-custom-balloon-close-button This element is the “X” button. You’ll be able to edit:

  • font-color
  • font-size
  • font-family
  • right
  • margin

Most Common CSS Customizations

Remove the Side Borders of a Balloon

.walkme-custom-side-border{
display: none !important;
}

Alter the Width of a Balloon

#walkme-balloon-xxxxxxx {
width: 300px !important;
min-width: 0 !important;
padding: 10px !important;
}

Remove an Arrow From the Balloon

Walk-Thrus:
.walkme-custom-balloon-arrow.walkme-custom-step-xxxxxxx{
display: none !important;
}

Smart Walk-Thrus:
 .walkme-custom-balloon-arrow.walkme-custom-flow-balloon-xxxxxxx{
display: none !important;
}

Alter the Text of the Next button

div#walkme-balloon-xxxxxxx
button.walkme-custom-balloon-button.walkme-custom-balloon-normal-button.walkme-custom-balloon-next-button.walkme-action-next.walkme-click-and-hover span.walkme-custom-balloon-button-text{
font-size: 0 !important;

}

div#walkme-balloon-xxxxxxx button.walkme-custom-balloon-button.walkme-custom-balloon-normal-button.walkme-custom-balloon-next-button.walkme-action-next.walkme-click-and-hover span.walkme-custom-balloon-button-text:before {
content: “new text” !important;
visibility: visible !important;
font-size: 12px !important;

}

 

Alter the Text for the Back Button

button.walkme-custom-balloon-button.walkme-custom-balloon-weak-button.walkme-custom-balloon-back-button.walkme-action-back.walkme-click-and-hover span.walkme-custom-balloon-button-text

 

Alter the Text for the Done Button

button.walkme-custom-balloon-button.walkme-custom-balloon-normal-button.walkme-custom-balloon-done-button.walkme-action-done.walkme-click-and-hover span.walkme-custom-balloon-button-text

 

Apply Z-Index Changes to All the Balloons of a Walk-Thru

div.walkme-custom-walkthru-xxxxx.walkme-custom-simple-step {
z-index:0 !important;}
div.walkme-custom-walkthru-xxxxx.walkme-custom-balloon-arrow {
z-index:0 !important;}

 

Publish Changes in CSS

In order for changes in CSS to become live, you will need to publish.

Some changes that can be applied to your account aren’t reflected in the Publish menu. These include changes that are made to the following items and more:

This is because any change in your account that doesn’t relate to a specific WalkMe item will be pushed to your environment as soon as you publish any new or existing content. This means that if you’ve recently applied changes to one of your global segments, and then published an unrelated Walk-Thru, the changes made to your segment will be published as well.

To publish changes you’ve made to the CSS, perform a “blank publish” as follows:

  1. Click Publish in the Admin Bar
  2. Open the Publish tab
  3. If all you are doing is publishing changes to CSS, deselect all items
  4. Click Publish
  • Read about the ways you can customize the Player and Balloons in WalkMe without using CSS
  • Use the Flow Tracker to preview CSS

 

Was this article helpful?

Related Articles