Disable proposing Google Search on empty results

When entering a search term which is not found the search results page at the bottom suggests me to search via Google. I dont want to promote Google and also its missleading to asume the closed-community content is searchable with a Google search.

Can you turn that off?

1 Like

I am surprised that it is shown to you in a closed community. I think it should only appear if login_required is false.
This is what I see in my login-required forum:

yeah unfortunatelly we dont have login regquired = true but have nearly all categories limited to level1. (Idea behind is to have a friendly start page which basically shows public company news announcements).

But good to know that Discourse already observes this.

1 Like

You can hide the google search with css

.google-search-form {
    display: none;
}

To get rid of the “Try searching with Google instead:”[1] and “Or try searching with Google instead:”[2] you could replace the texts js.search.search_google and js.search.or_search_google with something like “(Or) try searching with a different term.”


  1. for users who cannot start a new topic ↩︎

  2. for users who can start a new topic ↩︎

2 Likes

I’ve just applied this today, thank you :slight_smile:

2 Likes

Glad to have spotted this. I hadn’t really noticed the Google suggestion before, and I’ve hidden it and edited site texts today too.

3 Likes