Recent searches


No recent searches

Is there a way to customize the description of a ZD Section or Category?

Answered


Posted Oct 14, 2021

We would like to be able to add 1) formatting, 2) bullets, and 3) Hyperlinks to a ZD category or section.  Is there a way to do this?


2

8

8 comments

Hello Mary, 

in my opinion there is 2 solutions to do this :

1) use a template from the marketplace

2)  edit the source code of your section_page or category_page depends on what you want. 
This options need skills in HTTP and Handlebars

 

Regards

0


Mary Paez's question was the closest I could find to my own. 

That is, in the Zendesk category's description, I would like to add HTML formatting. Let's say, I want to enter a simple line break under Arrange content > Edit category > Description:

line 1<br />line 2

The category page then shows the angle bracket:

line 1<br />line 2

Instead of the intended,

line 1
line 2

It's generated by a template Curlybrace:

{{#if category.description}}
<p class="page-header-description">{{category.description}}</p>
{{/if}}

Is there a helper I can apply to {{category.description}} to get around the character conversion? Some escaping of the HTML tags? Any way to get it to display as intended?

0


image avatar

Tipene Hughes

Zendesk Developer Advocacy

Hi Stephen,

There isn't currently in-built functionality to achieve what you're describing. As Mathieu mentioned, you are able to edit the source code in which case you could use a bit of Javascript to make dynamic changes based on your requirements e.g appending an additional <p> child element to the page-header class when certain conditions are met.

Tipene

0


Thanks, Tipene Hughes

That might work globally, but really what I'd like to accomplish is to put hyperlinks within descriptions. Since ZD's taxonomy doesn't allow placing an article or a section in more than one location, and since we can't have an article provide the top-level content for a section, it would be useful for our KB at least to have more thorough descriptions with links to related content. 

I think I understand why the tags are instead displayed as text, since the section descriptions are used in some cases as tooltips. I thought I'd check, and now I know for sure. 

0


Hello all,

was any solution provided to add hyperlinks in the section/category description?

Regards,

Abhishek Tiwary

0


image avatar

Brett Bowser

Zendesk Community Manager

Hey Abhishek, 
 
It looks like there's some solutions provided in this post that may be helpful: Hyperlinking Help Center Categories
 
Hope this helps!

0


Hi

 

Checking in to see if the answers above still hold true. 

 

I'm looking to add line breaks, bolded words, and a bullet list (just two bullets!) to a section description. 

 

Thank you!

0


image avatar

Jakub

Zendesk Customer Care

Hello ,
 
Yes, this still would involve working with custom code to perform this level of customization as natively the descriptions are plain text.

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post