Why does the word "empty" appear below a section or category in my help center?

Question

Why does the word empty appear below a section or category in my help center? How can I remove it?

Answer

The word empty appears when no articles have been added to the section or category.

For accounts using subsections, the word empty appears when one of the conditions below exists:

A section contains subsections without articles.

All articles in that section are only contained within other subsections.

To remove empty from a section or category remove the text in the code by following the below instructions.

Before you make changes to your live theme, you should make a copy of it and update the copied version.

To remove empty from your template:

In Knowledge admin, select the theme you want to edit.

Select Customize to open.

Click Edit code.

Select section_page.hbs and find the following code:

{{else}}

{{t 'empty'}}

{{/if}}

Remove the word empty leaving the two straight apostrophes '' intact with no space between them.

{{else}}

{{t ''}}

{{/if}}

Save and publish.

As an alternative solution select style.css page and add the following rule:

.section-empty {
display: none;
}

Disclaimer: This article is provided for instructional purposes only. Zendesk does not support or guarantee the code, which might become obsolete over time. Zendesk can't provide support for third-party technologies such as JavaScript, jQuery, or CSS. Post any issues you have in the comments section or try searching for a solution online.