Question
Why does the wordemptyappear below a section or category in my help center? How can I remove it?
Answer
The wordemptyappears when no articles have been added to the section or category.
For accounts usingsubsections,the wordemptyappears 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 removeemptyfrom a section or category remove the text in the code by following the below instructions.
Before you make changes to your live theme, you shouldmake a copy of itand update the copied version.
To remove empty from your template
- In Guide, select the theme you want to edit.
- SelectCustomizeto open.
- ClickEdit code.
- Selectsection_page.hbsand 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}} - Saveand publish.
As an alternative solution selectstyle.csspage and add the following rule:
.section-empty {
显示:没有;
}
Disclaimer:This article is provided for instructional purposes only. Zendesk does not support or guarantee the code. Zendesk also 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.
0 Comments
Pleasesign into leave a comment.