Google Custom searchを wordpressに 設置してみた。(2)


AddThis Social Bookmark Button

前回に引き続き[Google Custom Search]の導入について記載します。
今回は実装編と題して、カスタム検索と Google ajax searchと連携させ、ちょっとかっこよく見せようと思います。

  1. Googleサービスの[Custom Search Engine]ページにアクセスします。
    画面右にある[manage your existing search engines.]を押して下さい。
    Google -Custom Search Engine
  2. 前回作成したカスタム検索の[control panel]を押します。
  3. 画面上部のを押します。[On a Google-hosted page]を押し、表示されるコードを記載するのもいいのですが、それでは面白くありません。
  4. [Host results on a non-Google site using an:]を選択し、[overlay ? requires one page, but presents results in a modal overlay]を選択します。すると、Site URLのテキスト入力ボックスが表示されるので、実装したいwordpress URLを入力し、[Generate code]を押します。
  5. 表示されたcodeをwordpressテーマに記載すれば、実装完了です。

Trackback URL

コメント入力受付中

利用可能なタグ:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <img localsrc="" alt="">

(*)は必須項目です。