You can customize your Personal Site Search by creating a customized search results page. (The search results page appears when a visitor completes a search.)
To use Personal Site Search with a customized results page, you'll first add a search box to a page of your site, then specify a page in which to display the results.
To add a search box to a page:
- Go to the Create & Update tab of your Web Hosting Control Panel and click the "Add-Ons" link.
- Choose "Personal Site Search."
- In step 1, click the "Activate Indexing" button to prepare your pages for searching.
- Click the "Select Code" button in step 4 to highlight the special HTML code that will be used to display your search box and specify a customized results page.
- Copy the code by holding down the CTRL and C buttons (Apple and C for Mac users), or choose "Copy" from the Edit menu of your browser.
- Once you have copied the HTML code, you can add it to the web page in which you'd like to place the search box to appear. Click the "Open File Manager" button to open your File Manager, which you can use to add the code.
- Locate the name of the page (mypage.html, for example) to which you want to add the search box.
- Click the "Edit" icon next to the page name.
- Paste the code in the part of the page in which you'd like to display the search box.
- Click the "Save" button to save your changes.
Learn more about adding HTML code to your page.
Now you'll create a new page in which to display your Personal Site Search results.
(To display the results in an existing page, you can open that page and skip to step 2 below. Please note that your results page must be saved in the top-level directory of your site.)
- Create a new page for your web site called my_results.html. (You'll need to create this page using a tool that supports HTML editing, such as SiteBuilder or the HTML Editor.)
- Save this page in your top-level, or root, directory. This file will become your customized search results page.
- Add the following code to your my_results.html page in the spot where you want your search results to appear:
- Save your changes.
Note: You can customize the name and location of your custom results page. If you'd like to name your results page something other than my_results.html and save this file in a subdirectory of your web site, you'll simply need to replace part of the custom results page code with the correct path to your file (your custom page's web address).
For example, if instead of my_results.html you want to create a results page called search.html and save this file in the directory folder1, you'd replace the my_results.html path in the custom error page code with your own file path:
<input type="hidden" name="results_page" value="http://www.widgetdesigns.com/my_results.html">
<input type="hidden" name="results_page" value="http://www.widgetdesigns.com/folder1/search.html">