How to customize Personal Site Search

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:

  1. Go to the Create & Update tab of your Web Hosting Control Panel and click the "Add-Ons" link.
  2. Choose "Personal Site Search."
  3. Click the "Select Code" button in step 3 to highlight the special HTML code that will be used to display your search box and specify a customized results page.
  4. 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.
  5. 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.
  6. Locate the name of the page (mypage.html, for example) to which you want to add the search box.
  7. Click the "Edit" icon next to the page name.
  8. Paste the code in the part of the page in which you'd like to display the search box.
  9. 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.)

  1. 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.)
  2. Save this page in your top-level, or root, directory. This file will become your customized search results page.
  3. Add the following code to your my_results.html page in the spot where you want your search results to appear:
  4. 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:

http://www.widgetdesigns.com/my_results.html">

http://www.widgetdesigns.com/folder1/search.html">
  • Was this article helpful?

  • Yes
  • No

Still need help?