Skip to main content

Installing AddSearch on a Drupal Website

Follow these steps to add AddSearch instant site search to your Drupal site quickly.

Get Your Site Key

  1. Log in to your AddSearch Account.
  2. Navigate to Setup > Keys and installation.
  3. Copy the Your Site Key value.

Configure Search Widget

  1. Use the AddSearch Search Designer to customize your search widget.
  2. After configuring, copy the provided installation script snippet.

Add AddSearch Script to a Drupal Page

  1. Log in to your Drupal Admin dashboard.

  2. Go to the Content section via the top admin menu.

  3. Choose to Add Content or Edit an existing page.

    Drupal Content Section

  4. In the content editor, click the Source button to view the HTML source.

  5. Paste the AddSearch script snippet where you want the search bar to appear.

  6. Save your changes.

    Paste Script on Drupal Page

  7. Your search box is now live. Test it by entering text into the search field.

Add AddSearch as a Drupal Block

  1. Log in to Drupal Admin.

  2. Navigate to Structure > Block Layout.

    Drupal Block Layout

  3. Click Add Custom Block.

    Add Custom Block

  4. Enter a Description for your block.

  5. Click the Source button in the block body editor.

  6. Paste the AddSearch script snippet into the body.

  7. Select Full HTML from the Text Format dropdown.

    Block Body Editor

  8. Set the Region Settings to where you want the block displayed (e.g., header).

  9. Click Save to add the block.

    Block Region Settings

  10. The AddSearch box is now available as a block on your site.


For further customization, revisit the Search Designer tool anytime to update your widget's appearance or behavior.

Note: Confirm that your Drupal site uses compatible text formats and permissions to allow adding custom scripts in blocks or pages.