Disclaimer: This article is provided for instructional purposes only. Zendesk does not support or guarantee the code. Zendesk also cannot provide support for third-party technologies such as JavaScript, jQuery, or CSS. Please post any issues you have in the comments section or try searching for a solution online.
Question
How can I remove Suggested Articles from the ticket submission form?
Answer
Suggested articles are what users see when they type the subject of their request into the submit a request form on Help Center.
To remove Suggested Articles:
- In Guide, click the Customize design icon (
) in the sidebar.
- Click the theme you want to edit to open it.
- Click the options menu and select Edit Code.
- Select the style.css tab and search for the following words: suggestion-list
- Replace all the highlighted sections with the following:
.form .suggestion-list {
display:none;
}.form .suggestion-list label {
display:none;
}.form .suggestion-list li {
display:none;
}.form .suggestion-list li a:visited {
display:none;
} - The CSS should look like this:
- Click Save.
For more information about customizing your Help Center template, see the article: Editing the code for your live help center theme.
14 Comments
I was able to achieve this by adding the following line into script.js:
The 'searchbox' element is contained within the 'suggestion-list' element, so suppressing the parent element effectively hid it.
Thanks for sharing your solution, Samuel!
Are there older, different or more possibly....hidden files that I am not seeing to make this change?
suggestion-list does not exist in my style.css, nor the page I am working on.
Im trying to add some code to hide the suggestion list for one pulldown, but have it available for another. I've emailed support, with no responses.
It will more than likely be an addition like this....
In the HTML
form <li class="suggestion-list">Subject Dropdown #1</li>
And in the CSS
.hidden{ display: none }
Any help would be appreciated.
Hi Wade,
The code you add will first need to detect that the conditions where you wish to hide suggested articles are present. This will most likely be easier with Javascript. Once your code identifies this, then it can use the one-line snippet that Samuel shared to finally hide the suggested articles.
Best,
How to hide suggested articles only when tab out from email subject?
onmouseout - is it possible to hide when the user moves the mouse away from email subject
Something like this should do the trick:
You'll also need to add
display: none
to the.form .suggestion-list
styling:I hope this helps! Feel free to reach out with any questions.
Tipene
Is there a way to limit the articles suggested based on the form a customer selects? I really like having Suggested Answers but we have some articles that are very similar so the list can look repetitive. Instead, I'd like a way to only show suggestions from a specific category for each form. Thanks in advance for any ideas you have!
Hey @Autumn Yes that is doable with a help of ZD API. You should use the Search endpoint with scope to the needed category on each ticket form.
Hi all!
It is possible to get the syntax that will make it possible to filter the suggested articles based on the label please :-) :-) ??
Best regards,
Hi,
Is it possible to limit the results to be for example maximum 3 results for suggested articles?
Best Regards,
Tony
Hey Tony, just add this at the end of your theme CSS file, it should do the trick.
Thanks Vlad! Just pasted it at the bottom and it worked :)
Please sign in to leave a comment.