# Baidu Search

**URL:** https://meta.discourse.org/t/baidu-search/170283
**Category:** Theme component
**Tags:** official, baidu-search
**Created:** [November 16, 2020, 5:23pm UTC](https://meta.discourse.org/t/baidu-search/170283 "2020-11-16T17:23:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Discourse](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/discourse/32/148734_2.png) [@Discourse](https://meta.discourse.org/u/Discourse)
#### Post date: [November 16, 2020, 5:23pm UTC](https://meta.discourse.org/t/baidu-search/170283/1 "2020-11-16T17:23:01Z")

</div>

| | | |
| --- | --- | --- |
| :discourse2: | **Summary** | **Baidu Search** is specific for Chinese sites whose users cannot use the usual Google search. |
| 🛠 | **Repository Link** | [https://github.com/discourse/discourse-baidu-search](https://github.com/discourse/discourse-baidu-search) |
| 📖 | **New to Discourse Themes?** | [Beginner’s guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) |

Install this theme component

> [@](#):
>
> :discourse2: As this is an #official theme component maintained by the Discourse team, #Support, #Contribute > Bug, #Contribute > UX, and #Contribute > Feature requests can be made in the respective categories here on Meta, and tagged with the appropriate theme component tag. Click on a link below to get one started. 👍
> 
> [❓&nbsp; **Support**](https://meta.discourse.org/new-topic?category_id=6&tags=baidu-search "Ask for support on configuring and using Baidu Search") [🐛&nbsp; **Bug**](https://meta.discourse.org/new-topic?category_id=1&tags=baidu-search "A bug report means something is broken, preventing normal/typical use of the theme component") [👀&nbsp; **UX**](https://meta.discourse.org/new-topic?category_id=9&tags=baidu-search "Discussion about the user interface of Baidu Search, and how features are presented (including language and UI elements)") [💡&nbsp; **Feature**](https://meta.discourse.org/new-topic?category_id=2&tags=baidu-search "Discussion about how existing Baidu Search features can be improved or enhanced, and how proposed new features could work")

### Features

After installing and activating the component remember also to update the `js.search.search_google` and `js.search.or_search_google` strings (from `/admin/customize/site_texts`) by replacing ‘Google’ with ‘Baidu’ or ‘百度’.

 ![image](https://global.discourse-cdn.com/meta/original/3X/c/b/cb99a4f8fed2effe897a32ebca3ad813f39f0f4c.png)

 ![image](https://global.discourse-cdn.com/meta/original/3X/c/d/cd526783ec9a39d41bb113f7ab89ad8111c89de2.png)

> **Parameters references**
>
> Since the documentation in English relating to the parameters used by Baidu is scarce, I leave here the two valid references I found on the net
> 
> - [https://chineseseoshifu.com/blog/complete-list-of-baidu-search-url-parameters.html](https://chineseseoshifu.com/blog/complete-list-of-baidu-search-url-parameters.html)
> 
> - [https://www.programmersought.com/article/1062804835/](https://www.programmersought.com/article/1062804835/)

### Credits

Thanks to @david for finding the workaround to make the search work on a specific site even without using the `Q6` parameter which doesn’t work properly with the search terms!

> :discourse2: **Hosted by us?** Theme components are available to use on our Standard, Business, and Enterprise plans.

> Last edited by @JammyDodger 2024-06-11T08:19:47Z
> 
> > **Check document**
> >
> > Perform check on document:

---

<div class="post-metadata">

### Author: ![Robert\_Digi-Key](https://avatars.discourse-cdn.com/v4/letter/r/41988e/32.png) [@Robert\_Digi-Key](https://meta.discourse.org/u/Robert_Digi-Key)
#### Post date: [March 27, 2025, 1:15pm UTC](https://meta.discourse.org/t/baidu-search/170283/2 "2025-03-27T13:15:14Z")

</div>

Do you know if this will component will be updated or if it will just need to be removed prior to the June deadline?

 ![This image shows a notice within the Discourse software interface, indicating that one of the themes called "Baidu Search" needs to be updated for compatibility with upcoming core changes, and it currently supports updates automatically when the software is updated. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/b/5/1/b5135d91da9de5b20a1a9e89fb23a271702e499d.png)

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [March 27, 2025, 2:32pm UTC](https://meta.discourse.org/t/baidu-search/170283/3 "2025-03-27T14:32:46Z")

</div>

I think it would be reasonable to make a #Contribute > Feature request. It seems a good idea for the admin/user to set up their preferred search engine.

Fixing the TC would require a [plugin outlet](https://meta.discourse.org/t/using-plugin-outlet-connectors-from-a-theme-or-plugin/32727). If the team is okay with it, I can make a PR to add one.

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [March 30, 2025, 6:54pm UTC](https://meta.discourse.org/t/baidu-search/170283/4 "2025-03-30T18:54:02Z")

</div>

There is actually an existing plugin outlet introduced recently.  
I made a PR:

[https://github.com/discourse/discourse-baidu-search/pull/22](https://github.com/discourse/discourse-baidu-search/pull/22)
