Results 1 to 5 of 5

Thread: How to integrate Google Search in Wordpess Blogs?

  1. #1
    gfx's Avatar
    gfx
    gfx is offline AM Blogger
    Join Date
    Dec 2008
    Location
    Delhi
    Posts
    70
    Thanks
    1
    Thanked 9 Times in 5 Posts

    How to integrate Google Search in Wordpess Blogs?

    Can anyone tell me how to integrate Google Search Box in a Wordpress Blog, so that it shows the results within the site, not in the google search?

    Thanx!

  2. #2
    5starpix's Avatar
    5starpix is offline Senior Net Builder
    Join Date
    Dec 2008
    Location
    Montreal, Quebec
    Posts
    1,710
    Blog Entries
    9
    Thanks
    158
    Thanked 227 Times in 164 Posts

  3. #3
    shivachettri's Avatar
    shivachettri is offline The SEOlizer
    Join Date
    Dec 2009
    Posts
    239
    Thanks
    15
    Thanked 22 Times in 21 Posts
    If you are not into coding and stuff you should probably use the plugin mentioned by 5starpix

  4. #4
    Aziz's Avatar
    Aziz is offline no investment, no glory
    Join Date
    May 2009
    Location
    IL
    Posts
    736
    Thanks
    588
    Thanked 243 Times in 168 Posts
    custom google search offers many options.
    in your CSE control panel, move to "Feel and Look"
    and choose Search element as hosting plan.
    customize it as you like and get the code afterward

  5. #5
    SonnyCooL's Avatar
    SonnyCooL is offline HeeHa
    Join Date
    Jan 2010
    Location
    Melb/Malaysia
    Posts
    920
    Thanks
    250
    Thanked 92 Times in 78 Posts
    Just copy complete article for u, wish it help
    If you use Google Adsense then you will probably be aware that there is an option to place a Google Search box on your blog so you can earn money for every search that is conducted. I’ve never really been a fan of the fact that it takes the searcher to a boring results page away from your blog.

    Did you know that with a little bit of customisation and editing you can actually have the search results appear on your blog instead of showing on a page that is not connected with your blog?

    I’m going to show you how to do it.

    What you will need:

    - Google Adsense account
    - Some Spare Time (about five minutes at the most)
    - Exclude Pages plug-in

    Step One - Setting Up Search

    The first thing you need to do is to get Google Search set up. So go to AdSense Setup > AdSense for Search and fill in the fields as you see fit and click next.

    When you get to the Search Results Style page (should be third page) you should see the following options:
    1.1 Opening of search results page
    You have three choices, the one you want is the bottom one ‘Open results within my own site’. This will reveal a field below it. This is where you type in your search page, it will be http://yourdomain.com/search/.

    Leave ‘enter width of results area’ as 800 for now, you can’t make it lower here but I will show you how to do that later on in this tutorial.
    1.2 Ad Location
    This is where you want your results to appear on the blog search page. I’d suggest Top and Bottom. You can always edit this later on.

    All you have to do now is click Next, then give your search page a name and click Submit.

    Step Two – Placing Search On Your Blog

    You will see two sets of code. The first set of code is your search box code. This is to be placed where you want the search box to show up in your blog template.

    Take the second set of code and go into your Wordpress admin panel. Go to Pages and create a new page. This page will be called ‘Search’. Put the second set of code into the page, disable the comments & the pings and then publish.

    Now go and test it out. Type something into you search box and see what the results page looks like.



    If the results are too wide go back to your admin panel and go to the Search page. Find the section of the code that looks like the bit below:

    php Code:
    var googleSearchFrameWidth = 575;

    Edit the size to suit your design.

    Step Three – Removing Search Page From Menus

    If like me you don’t want the Search page showing up on your menu because if people click it directly they will see a blank page. I use the excellent Exclude Pages plug-in which makes this process so incredibly easy.

Similar Threads

  1. Why Google likes blogs?
    By Jammyjoker in forum Promoting
    Replies: 34
    Last Post: 6 July, 2010, 04:01 AM
  2. Personalized Search Is Now Default Google Search Option
    By bogart in forum Search Engine News
    Replies: 2
    Last Post: 8 December, 2009, 00:51 AM
  3. Google to Launch a New Version of Google Search
    By Nick Rodriquez in forum Search Engine News
    Replies: 34
    Last Post: 12 September, 2009, 14:36 PM
  4. Search tool to find dofollow blogs by niche?
    By Mike Dammann in forum Promoting
    Replies: 10
    Last Post: 1 July, 2009, 14:21 PM
  5. Integrate Adsense with Google Analytics
    By Szise in forum Stats
    Replies: 3
    Last Post: 2 May, 2009, 11:56 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •