How to hide the left navigation bar in the knowledge base site?

Prev Next

Plans supporting the use of custom CSS and JS in knowledge base site

Professional
Business
Enterprise






You wish to hide the left navigation bar or category manager by default in the Knowledge base site. You can hide this to enhance the readers' experience.  However, readers can enable it by clicking the Show category icon adjacent to the article title.


Solution

  1. Navigate to Settings () > Knowledge base site > Customize site > Custom CSS & JavaScript in the Knowledge base portal.

  2. From the left navigation pane, click on the CSS tab and paste the following CSS snippet:

.left_sidebar {
 display : none;
} 
site-docs-left-panel-container{
display: none !important;
}
  1. Click Save on the top right.


Outcome

Before

The left navigation bar or category manager is shown by default.

After

The left navigation bar or category manager is hidden by default.