Can you customize the "searches with no results" page? | The place for Zendesk users to come together and share
Skip to main content
Question

Can you customize the "searches with no results" page?

  • April 5, 2023
  • 2 replies
  • 7 views

Josh26

If someone searches in our Help Center and doesn't get a result, they currently see text that says:

"Try searching another keyword. Browse Help Center"

Is it possible to customize what appears on that page? I'm not sure how to find that code to edit it. Any insights are appreciated. Thank you!

2 replies

  • April 5, 2023

Hey 

We created an article for not found that contained information and then added this to the script.js. We could then add our own content to it. It required being at the top of the script.js and we use a custom marketplace template.

$(document).ready(function() {
  if ( window.location.href.indexOf('articles') > -1 && $(".not-found").length > 0 ) {
window.location.href = 'New Article URL';
}

 

Hope this helps.


Brett Bowser
  • Community Manager
  • April 6, 2023
Awesome solution Oliver! Thanks for taking the time to share this with everyone!