Google Custom Search creates a perfect intra-Site Search Engine

Source: Internet
Author: User

All websites must have the "intra-Site Search" function, which helps others find the desired articles and related content on our website. Frequent "intra-Site Search" requires that our database resources be called to increase the server load. Today, we will share this "burden" with everyone and use Google's powerful custom search engine to serve our website.

  

 

1. Apply for an account for Google Custom Search

1. First, you need to log on to the account application page for Google Custom Search: http://www.google.com.hk/cse/, and click the registration token in the upper right corner To Go To The registration page. If you have a Google account, log in directly.

2. Fill in necessary account registration information and agree to accept the Google Terms of Service and privacy policy, and then create your account.

  

 

2. Three-step application for Google Custom Search

1. log on to Google Custom Search and choose new search engine.

  

 

2. Go to the set your search engine page and follow these steps.

① Describe your search engine: Add a name and description for your on-site search. Select Simplified Chinese as the language.

② Define your search engine: here we enter the website for full-site search. (Note: Enter www.i7086.com/* for the website to be searched /*)

③ Select version: Of course, select "Standard Edition: free, but the advertisement must be displayed on the result page ."

④ Check "I have read and agree to accept the terms of service" and click Next.

  

 

3. Select or customize a style. You can select each style here, and then you can instantly display the effect in "Try your search engine. Select and click Next.

  

 

4. Go to the get code page. The prompt "Congratulations! You have successfully created a search engine for "Searching in the site .", Make sure to record the unique ID of the search engine. Is it over ?? NO, we also need to set the "Next Step", otherwise you will not be able to use it. Select "appearance" for setting.

  

 

Iii. Subsequent settings of Google Custom Search

1. After selecting "appearance", we actually went to the Google Custom Search control panel. Control Panel-appearance → select layout. Here we need to select a 2-page layout, otherwise the search results cannot be opened on the new page. Remember to click Save and get the code, copy the complete code, and record it.

  

 

2. Select the "website" tab. If you want to add a website, you can add it here. Otherwise, you can skip this step. The newly added website is still in the format of www.i7086.com /*

  

 

3. Select the "income" tab. Here is the page bound to the Google AdSense account, that is, adding Google AdSense ads to your search page. Enter the email, zip code, and the last 5 digits of the phone number when you register Google AdSense as required. Select Chinese as the preferred region. Submit !!

  

 

After submitting the email, you will receive a confirmation email. Click the link in the email to authorize Google Custom Search to associate with the AdSense account.

  

 

4. If you forget to record the unique ID of the search engine, you can select "Basic Information" in the control panel to view your ID.

4. Perfect Combination of Google Custom Search and WordPress

1. Find search in your topic file. PHP file, copy the complete code recorded to search. in the PHP file, create a search page in the background of the topic, use the search template, and publish the page.

  

 

2. If the topic control panel has the search control option, enter the unique ID of the search engine and the link to the Google search result page in the topic control panel, after the settings are complete, Google Custom Search and WordPress are perfectly matched. For example, my http://www.i7086.com/search

  

Original article: http://www.i7086.com/googlezidingyisousuodazaowanmeizhanneisousuoyinqing

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.