# 有没有办法在搜索失败时建议用 DuckDuckGo 替代 Google？

**URL:** <https://meta.discourse.org/t/is-there-a-way-to-suggest-duckduckgo-instead-of-google-for-failed-search-ui/83895>\
**Category:** Support\
**Created:** [2018年三月26日 19:17 UTC](https://meta.discourse.org/t/is-there-a-way-to-suggest-duckduckgo-instead-of-google-for-failed-search-ui/83895 "2018-03-26T19:17:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wolftune](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wolftune/32/103569_2.png) [@wolftune](https://meta.discourse.org/u/wolftune)\
**Post date:** [2018年三月26日 19:17 UTC](https://meta.discourse.org/t/is-there-a-way-to-suggest-duckduckgo-instead-of-google-for-failed-search-ui/83895/1 "2018-03-26T19:17:51Z")

</div>

When a search returns no results, there’s a suggestion to try a Google search. We can alter the text above the button and could even alter the button label. But is there a way to change the button to use DuckDuckGo instead of Google? We do not want to endorse use of Google.

---

<div class="post-metadata">

**Author:** ![notriddle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/notriddle/32/133055_2.png) [@notriddle](https://meta.discourse.org/u/notriddle)\
**Post date:** [2018年三月26日 19:44 UTC](https://meta.discourse.org/t/is-there-a-way-to-suggest-duckduckgo-instead-of-google-for-failed-search-ui/83895/2 "2018-03-26T19:44:58Z")

</div>

Changing the actual form looks like it’ll need a theme component with custom javascript written, because it looks like `js.google_search` doesn’t actually work?

> **[GitHub - notriddle/discourse-duckduckgo-search: A theme component to use DuckDuckGo as the...](https://github.com/notriddle/discourse-duckduckgo-search)**
>
> A theme component to use DuckDuckGo as the suggested search engine when there are no results

> [@DuckDuckGo Search Suggestions](https://meta.discourse.org/t/duckduckgo-search-suggestions-theme-component/83902):
>
> Solves [Is there a way to suggest DuckDuckGo instead of Google for failed search UI?](https://meta.discourse.org/t/is-there-a-way-to-suggest-duckduckgo-instead-of-google-for-failed-search-ui/83895). A Discourse theme component to use DuckDuckGo as the suggested search system, instead of Google! p.s. You’ll probably want to customize some of the text strings to stop mentioning Google, too.

---

<div class="post-metadata">

**Author:** ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)\
**Post date:** [2018年三月28日 16:22 UTC](https://meta.discourse.org/t/is-there-a-way-to-suggest-duckduckgo-instead-of-google-for-failed-search-ui/83895/3 "2018-03-28T16:22:48Z")

</div>


