Workflow: Selectively hide help center components using Curlybars

Curlybars lets you hide components in your help center, such as the article, section, category, community topic, or community post. To do this, add conditional statements in your theme code that target the unique ID number of the component you want to hide.

This customization is available for the Guide Professional and Enterprise plans, and the Suite Growth plan or higher. The workflow includes these steps:

Step 1: Find the component's ID number

Step 2: Edit the theme code

What's next

Step 1: Find the component's ID number

Each component has a unique ID. The ID number appears in the URL when you navigate to the component's page.

To find the unique ID number:

In your help center, navigate to the component. For example, click a category if you want to hide the category from your help center.

Find the URL in your browser's address bar and get the unique ID number. The URL has the format /hc/en-us/categories/200420805-General. In this example, the number 200420805 is the unique ID of the component. Take note of this number.

Repeat the steps to get other unique ID numbers if you need to hide multiple components

Step 2: Edit the theme code

Access your theme code and add the isnt helper expression. When you use the isnt statement on a component's ID, your theme doesn't render and hides the targeted component from your help center pages.

To access your theme code:

In Knowledge, click Knowledge admin

Click the Customize design icon () in the sidebar

Find your live theme and click Customize. Then, click Edit code.

Find the page you want to edit in the templates folder

To add the isnt statement:

In this example, edit the Copenhagen theme to hide the Announcements and Unlisted categories from the home page. Users can still access them with a link to the categories and their articles.

In the templates folder, click home_page.hbs to access the home page template

Add the isnt statement with the unique ID number of the component. Repeat the code if you need to target multiple components.

Click Publish. To check that the components disappeared, click Preview.

What's next

Use the isnt statement to hide other components from your help center and community pages. Select a template file in your theme and target the component's ID. In this example, remove an article from the sections list in the sidebar. Users can still access the article through search or a direct link.

To achieve this, add the isnt statement with the article ID to the article_page.hbs template file.

For more information, see Customizing your help center theme.