iWeb FAQ - Google search
iWeb FAQ - Google search
iWebFAQ.org
Can I add Google search to my website? Can I have it searching within my website?
The answer to both questions is yes.
Please note that this is different from getting you site to be indexed by google (have your website showing up in the results) for that have a look at this page instead.
The same process also works using MassReplaceIt. The HTML codes go in to the REplace area, whereas the other codes go to the Search field. In the example that follows here I will be using iTweak.
1. Go to the google website clicking on this link
2. Click on “Create a custom search engine”
3.You will be asked to sign in or sign up for a google account if you don’t have it yet
4. Set up your search engine (name, description, language, ...)
5. Under “What do you want to search” select “Only sites I select” and under “Select some sites” enter your url:
-http://yourbaseurl.com
-http://web.me.com/username/
It has to be the one under which your pages are indexed by google.
6.Click on Next and try it out. If it works click on Finish.
7. You will get to a page called “My search engines” where you will see the name of the search engine you created. Click on the “control panel” you find near it. And then click on “Code” on the top of that page.
8. Select “Host results on your website”. There you will find two codes one “Your search box code” and the other “Your search results code”. Under “Specify search results details” type in the page where you want the results to display. We will call the page Results. Thus we will type in:
-http://yourbaseurl.com/sitename/Results.html
-http://web.me.com/username/sitename/Results.html
9. When you typed in the url copy the “Your search box code” and the “Your search results code” to a Word document or to a TextEdit document and save it.
10. Now go to iWeb and create a page for the results. As previously mentioned we will call this page Results
11.Make a textbox on that page and type the following text in it
%%GOOGLE_RESULTS_CODE%%
12. Resize the textbox until it has the size of how you want the results to display.
13. Open the Inspector and go to the 'Page' tab and uncheck the "Display navigation menu" box
14. On each page you want the google search to be included make a textbox with the following code in it:
GoogleSearchGoesHere
15. Now go to iTweak and under Interface
16.Copy& Paste the “Your search results code” to the Google Results Code box
17.Go to Search & Replace and click on the “+” sign on the bottom left part
18. Now:
In Search type in: GoogleSearchGoesHere
In Replace copy&paste the “Your search box code”
19. Be sure to select the “Integrate Google Search” box and the “Search & Replace” in iTweak.
20. Click on “Choose Published Site”
- If you publish to a folder choose the folder you publish to from iWeb
-If you publish to MobileMe select your iDisk/Web/Sites/ folder where iWeb publishes to.
If you can’t choose the iDisk because you don’t see it go to Finder/Preferences/Sidebar and check the box near the iDisk
21.Hit “Process Site” and you’re done.
Note: You have to run iTweak every time you re-publish from iWeb.
What is iTweak? and what is it good for? Have a look at this page
For further information and download on guimkie.com
Note 1: Please note that the site has to be indexed by google for the search box to work. If your site isn’t then look at the link on that topic at the top of this page
iWebFAQ.org - Tutorials, Tips & Tricks is made with iWeb and for iWeb.
It’s presented by Cédric and hosted by HostExcellence.com
I would like you to give me feedback on this page by commenting here. Tell me if it's been helpful. If it wasn’t please tell me why. If you think something is missing please tell me what.
Thank you for visiting and supporting my website.
- Cédric -

