Most content authors want to make their paths easier to identify. One way of doing so is to customize the icon or image used when displaying a path on a page. CXone Mpower Expert has a list of available icons that can be used to uniquely identify your individual paths.
<span class="mt-icon-article-lp">
element inside your path container is automatically selected.<div>
with the class mt-lp-path-container
.mt-lp-path-container
, you will find the unique class name assigned to your path. This unique path class name starts with mt-lp-path-container-[path name]
. In the below example, the unique path name is mt-lp-path-container-branding-responsive
.:before
pseudo element using CSS.
.mt-lp-path-container-branding-responsive .mt-icon-article-lp:before { content: '\e863'; }
Now that you have mastered how to customize a path in a guide tab, it should be much easier to customize additional elements in that same path.
Follow these easy steps to customize the path icon found outside of guide tabs with an image instead of an icon font. Once you've mastered this type of customization, it will be much easier to customize other elements in a path.
<span>
element with a class of mt-icon-article-lp
. Remember this class; it will be used as a CSS selector for your custom image later.<div>
with the class mt-lp-path-container
. To the right of this class name, you will see a custom class that is unique to your path. It will start with mt-lp-path-container-[path name]
. mt-icon-article-lp
as a CSS selector for your custom image. .mt-lp-path-container-lp-getting-started .mt-icon-article-lp:before { content: ''; }
<span class="mt-icon-article-lp">
element you first selected. You will need to have your custom image hosted somewhere; for now we will use an article attachment. Be sure to set the height and width for your image, or you will not be able to see it..mt-lp-path-container-lp-getting-started .mt-listing-detailed-title span { background: url('/@api/deki/files/715/best-practices.svg') no-repeat 0 0; height: 1.15em; width: 1.15em; }
.mt-lp-listings .mt-lp-path-container-lp-getting-started .mt-listing-detailed-title span { background: url('/@api/deki/files/715/best-practices.svg') no-repeat 0 0; height: 1.15em; width: 1.15em; }
You can continue your path customization on the pages in your path as well. Adding a custom icon or image allows you to carry your custom theme forward.
Follow these steps to customize the path icon that appears for each page along the path:
<span>
used for the path icon.<body>
element. Look for the class name that starts with columbia-learning-path-[path name]
. In our example, the class is columbia-learning-path-lp-getting-started
. You will need this class as a CSS selector to target pages along the path.:before
pseudo element. Here is a list of available icons that can be used to customize the path's icon..columbia-learning-path-lp-getting-started #title .mt-icon-article-lp:before { content: '\e83f'; }
Sometimes the best way to customize a path is with color. Here are some easy ways to make each path unique.
<body>
element. Look for the class name that starts with columbia-learning-path-[path name]
. In our example, the class is columbia-learning-path-lp-getting-started
. You will need this class as a CSS selector to target pages along the path.
:before
pseudo element of the <span class="mt-icon-progress-indicator">
found inside the page's link. Changing the color of that border would look like this:.columbia-learning-path-lp-getting-started .mt-lp-progress-bar li a span:before { border: .25em solid #0fc119; }
/* path icon */ .columbia-learning-path-lp-getting-started #title .mt-icon-article-lp:before { color: #03820a; } /* current page indicator */ .columbia-learning-path-lp-getting-started .mt-lp-progress-bar .mt-lp-page-current a span:before { background: #03820a; border: .25em solid #03820a; } /* progress indicators */ .columbia-learning-path-lp-getting-started .mt-lp-progress-bar li a span:before { border: .25em solid #0fc119; } /* progress bar line */ .columbia-learning-path-lp-getting-started .mt-lp-progress-bar { border-top: .15em dotted #3ad243; } /* path title below progress bar */ .columbia-learning-path-lp-getting-started .mt-lp-path-title-display { color: #03820a; } /* previous and next links */ .columbia-learning-path-lp-getting-started .mt-article-pagination a { color: #0fc119; } .columbia-learning-path-lp-getting-started .mt-article-pagination a:hover, .columbia-learning-path-lp-getting-started .mt-article-pagination a:focus, .columbia-learning-path-lp-getting-started .mt-article-pagination a:active { color: #03820a; }