Help Center

< Back
You are here:
Print

Use Existing Search Box

Some websites may already have a search bar and require ExpertRec to provide search suggestions and results. In this case, there is no need to replace the existing search bar with our <ci-search>  and then theme it from scratch.
This option is used to attach the search dropdown and results to your existing search box. The drawback here is that you cannot alter the appearance of your search box from the ExpertRec dashboard. However, the suggestions and results will still remain customizable.

Steps to Use Your Existing Search Box

  1. Navigate to Install->Code from the side navigationinstall code menu
  2. Copy-paste the JS script to the <head> tag of your pages js code
  3. Scroll down and switch over to the CSS Selector tab. Enable the Use Existing Search Box toggle and press the Update button.css selector
  4. For most websites, this is enough. The default setup will work flawlessly. If you are an advanced user or if you face any error with the default setup then proceed to the next steps.
  5. For attaching to your search box, we require three sets of inputs. Each set can hold multiple values. Multiple values are useful if you (a) have multiple search boxes on a page (b) have the search box in different positions on separate pages.
    1. CSS Selector of the <form> element: By default, there are some selectors in place. If they don’t match on your website, then you can add the correct selector(s) here. It is optional to remove the default selectors. They will be ignored if no matches are found on your website.
    2. CSS Selector of the input field: Same as above.
    3. CSS Selector of the submit button: Same as above. css selectors

If you continue to face issues, contact support over live chat, or raise a support ticket here.

Table of Contents