RapidWeaver FAQ - Google search field

Can I add a Google search field (or search box) to my RapidWeaver created website? Can I have it searching within my own website?
Please note that this is different from getting your site to be indexed by Google (have your website showing up in the results) for that have a look at this page instead.
The answer to both of the above questions is yes. And here’s how:
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 (web adress):
- 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 RapidWeaver and create a page for the results. As previously mentioned we will call this page “results”
11. On that page paste the “Your search results code” mentioned in step 9. Once you pasted it into the page select it all, go to “< >” (Apply HTML markup) and choose “Code”
12. Open the Page Info and uncheck the "Show in menu" box
13. On each page you want the Google search to be included paste the “Your search box code” to it mentioned in step 9. Once you pasted it into the page select it all, go to “< >” (Apply HTML markup) and choose “Code”
If you want the Google search box to appear in the header of every page open the page inspector, go to the third tab and enter the code in the header section. Go to the general settings tab and select only “Headers” click on the apply to all pages button. Make sure you pay attention to the items being changed before you hit apply.
RapidWeaverFAQ.org - Tutorials, Tips & Tricks is made with RapidWeaver and for RapidWeaver.
It’s presented by Cédric and hosted by HostExcellence.com
I would like you to give me feedback on this page by commenting in the appropriate section of the Forum. 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. If you have questions about it post them there and I will probably try to give you an answer.
Thank you for visiting and supporting my website.
- Cédric -