About Help Center end user search

Return to top


  • Soo Hian

    Hi, can we only set the search to find Help Center articles and not community topics/posts?

    Is there a setting for this? Thank you!

  • Amy Gracer
    Community Moderator

    You probably have scoped to KB enabled. See this section

    Scoped search in Knowledge base

    This might also help.

    search helper


    Inserts a search box.



    • scoped (optional, boolean) If scoped is true and the helper is on the category, section, or article page, searches only the articles in the current category. If the helper is on the topic or post page, searches only the posts in the current topic. Default is false.
    • submit (optional, boolean) If true, render the submit button. Default is false.
    • instant (optional, boolean) If true, enables Instant Search to provide HC article suggestions while you type in the search box. Instant Search article suggestions do not respect the scoped parameter if it is set.
    • class (optional, string) class name to be added to the form
    • placeholder (optional, string) placeholder value for the search input element
    • All pages

    If inserted in the Home page:

    <section class="search-box">
      <form accept-charset="UTF-8" action="/hc/en-us/search" class="search" method="get" role="search">
        <div style="display:none"><input name="utf8" type="hidden" value="&#x2713;" /></div>
        <input id="query" name="query" placeholder="Search" type="search" />
        <input name="commit" type="submit" value="Search" />
  • Dave Dyson
    Zendesk Community Manager

    Hi Karolina,

    Not directly, but you can use the Help Center API to get search results in JSON format: Help Center API – Search

  • Rahul Singh


    Is there a way to configure null search default text? currently there's a 'contact us' redirection for a null search result, which I want to remove.

  • Tipene Hughes
    Zendesk Developer Support Team
    Hey Rahul,
    Thanks for reaching out!
    You can customize what appears on the page when no search results are returned by updating the code in the search_results.hbs file. For example, using the default Copenhagen theme you’d need to update the final {{else}} statement in the search_results.hbs file. Below is how the code appears by default:
            {{t 'no_results_unified'}}
            {{#link 'help_center'}}
              {{t 'browse_help_center'}}
    Which appears on the search results page as:

    Here’s a link with more information on the different helpers available to you when customizing the code: 
    I hope this helps! Feel free to reach out with any questions.

Please sign in to leave a comment.

Powered by Zendesk