How to Get Baidu Search Box Code?

Baidu is the famous search engine and number one traffic ranked site in China. Baidu predominantly offer searches in Chinese and also offer English searches in partnership with Bing. If you are targeting users in China or your website is having pages in Chinese then it is a great idea to use Baidu custom search box in your site instead of Google custom search box.

You can get Baidu search box code in two ways:

Baidu does not offer English version of the webmaster tools hence you may need to use translation tool to understand the content. Here we eliminate the hassle of translation for webmasters and explain how to get and use Baidu search box code using English notations.

Click here to login to your Baidu webmaster tools account. You need to register and verify a new account in case if you do not have an existing account.

Login to Baidu Webmaster Tools Account
Login to Baidu Webmaster Tools Account

Click here to get the Baidu search box code without registering for Baidu webmaster tools account.

The procedure is same for both the cases and you will reach the webmaster tools page with various options. Scroll down and go to the last option “other tools” and click on the “Search Code” link.

Baidu Search Box Code Option
Baidu Search Box Code Option

You will see two tabs – one is for getting search box and the other is for getting suggested popular search.

Baidu Search Options

Under search code tab there will be three options available and you can copy and paste any of the codes in your site to enable Baidu search box.

Baidu Search Box Options
Baidu Search Box Options

  • Option1:

As shown in the above picture, option1 is for Simple Baidu search box with an image, box and a search button.

  • Option2:

Same like option1 with an additional option for searching Web, News, Music or Image as shown below.

Option 2 for Baidu Search Box
Option 2 for Baidu Search Box
  • Option3:

Same like option1 with an option to choose web search or specific site search. Here, you need to replace “www.baidu.com” in the code with your site URL.

Option 3 for Baidu Search Box
Option 3 for Baidu Search Box

Prefetching Popular Searches

Popular search enables Baidu to suggest most searched keywords when you are typing the keywords in the search box. Copy and paste the HTML or JavaScript code under the Popular Search” tab to enable this function in your Baidu search box.

Enable Baidu Popular Search
Enable Baidu Popular Search

Once enabled, when searching in the Baidu search box will show the suggested search terms as shown below.

Example - Baidu Popular Search
Example – Baidu Popular Search

 

Editorial Staff at WebNots are team members who love to build websites and share the learning with webmasters community. Follow us on Facebook and Twitter.

Leave a Comment